Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
dkropachev committed Jan 26, 2025
1 parent 94d267e commit c5d5f92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
- name: Overwrite for MacOs
if: runner.os == 'MacOs' && matrix.platform == 'all'
run: |
find / -name ev.h 2>/dev/null
echo 'CIBW_ENVIRONMENT: PIP_GLOBAL_OPTION="build_ext -j4 -I/usr/local/include/ -L/usr/local/lib -I/opt/homebrew/include -L/opt/homebrew/lib"' >> $GITHUB_ENV
echo "CIBW_BUILD=cp39* cp310* cp311* cp312* cp313*" >> $GITHUB_ENV
echo "CIBW_BEFORE_TEST_MACOS=pip install -r {project}/test-requirements.txt pytest" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def __init__(self, ext):

is_macos = sys.platform.startswith('darwin')

libev_includes = ['/usr/include/libev', '/usr/local/include', '/opt/local/include', '/usr/include']
libev_includes = ['/usr/include/libev', '/usr/local/include', '/opt/local/include', '/usr/include', '/opt/homebrew/include']
libev_libdirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
if is_macos:
libev_includes.extend(['/opt/homebrew/include', os.path.expanduser('~/homebrew/include')])
Expand Down

0 comments on commit c5d5f92

Please sign in to comment.