Skip to content

building issues on macOS #10

@shakfu

Description

@shakfu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions