On macOS, /usr/local/include and /usr/local/lib are not automatically searched so pip install sox bindings fails.
I have fixed this by git cloning the soxbindings repo and making the following changes to the setup.py file:
% git diff setup.py
diff --git a/setup.py b/setup.py
index 3ee9d8c..8b2c894 100644
--- a/setup.py
+++ b/setup.py
@@ -27,6 +27,10 @@ ext_modules = [
include_dirs=[
# Path to pybind11 headers
get_pybind_include(),
+ "/usr/local/include",
+ ],
+ library_dirs=[
+ "/usr/local/lib",
],
language='c++'
),
On macOS,
/usr/local/includeand/usr/local/libare not automatically searched sopip install sox bindingsfails.I have fixed this by git cloning the
soxbindingsrepo and making the following changes to thesetup.pyfile:% git diff setup.py diff --git a/setup.py b/setup.py index 3ee9d8c..8b2c894 100644 --- a/setup.py +++ b/setup.py @@ -27,6 +27,10 @@ ext_modules = [ include_dirs=[ # Path to pybind11 headers get_pybind_include(), + "/usr/local/include", + ], + library_dirs=[ + "/usr/local/lib", ], language='c++' ),