Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix building wheels #41

Merged
merged 18 commits into from
Oct 18, 2023
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.9.0
run: python -m pip install cibuildwheel==2.10.0
- name: Install gcc for mac
if: matrix.os == 'macOS-11'
run: |
Expand All @@ -54,11 +54,14 @@ jobs:
ls /usr/local/bin/gcc*
gcc --version
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: |
python -m pip install --upgrade pip
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ENVIRONMENT_MACOS: >
PATH="/usr/local/opt/llvm/bin:$PATH" LDFLAGS="-L/usr/local/opt/llvm/lib" CPPFLAGS="-I/usr/local/opt/llvm/include"
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-*
CIBW_BEFORE_BUILD: 'python -m pip install "numpy<2.0.0" --config-settings=setup-args="-Dallow-noblas=true"'
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build_wheels:
strategy:
matrix:
os: [ windows-2019, macOS-11 ]
os: [ubuntu-20.04, windows-2019, macOS-11 ]

name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.9.0
run: python -m pip install cibuildwheel==2.10.0
- name: Install gcc for mac
if: matrix.os == 'macOS-11'
run: |
Expand All @@ -28,8 +28,12 @@ jobs:
ls /usr/local/bin/gcc*
gcc --version
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: |
python -m pip install --upgrade pip
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ENVIRONMENT_MACOS: >
PATH="/usr/local/opt/llvm/bin:$PATH" LDFLAGS="-L/usr/local/opt/llvm/lib" CPPFLAGS="-I/usr/local/opt/llvm/include"
CIBW_BUILD: cp310-*
CIBW_BUILD: cp39-*
CIBW_SKIP: "*musllinux* *manylinux_x86_64"
CIBW_BEFORE_BUILD: 'python -m pip install "numpy<2.0.0" --config-settings=setup-args="-Dallow-noblas=true"'
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ['setuptools', 'numpy', 'Cython<3.0.0']
requires = ['setuptools', 'numpy<2.0.0', 'Cython<3.0.0']
build-backend = 'setuptools.build_meta'

[project]
Expand Down
Loading