Skip to content

Commit

Permalink
Fixed build error for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
crlandsc committed Nov 19, 2024
1 parent 5c2a379 commit eb9a96b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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++'
),
Expand Down

0 comments on commit eb9a96b

Please sign in to comment.