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++' ),