From eb9a96ba06313b73d601b8e3170fc187e9177c90 Mon Sep 17 00:00:00 2001 From: Christopher Landschoot Date: Tue, 19 Nov 2024 13:14:20 -0600 Subject: [PATCH] Fixed build error for macOS --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 3ee9d8c..0a07f78 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,11 @@ from setuptools.command.build_ext import build_ext import sys import setuptools +import subprocess __version__ = '1.2.3' +SOX_PREFIX = subprocess.check_output(['brew', '--prefix', 'sox'], encoding='utf8').strip() class get_pybind_include(object): """Helper class to determine the pybind11 include path @@ -27,6 +29,10 @@ def __str__(self): include_dirs=[ # Path to pybind11 headers get_pybind_include(), + f"{SOX_PREFIX}/include", + ], + library_dirs=[ + f"{SOX_PREFIX}/lib", ], language='c++' ),