Skip to content

Commit

Permalink
FIX: Try installing a usable 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jun 11, 2024
1 parent 64b38e9 commit 51bb92d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,20 @@ jobs:
- name: Get HDF5 on macOS
run: bash ./ci/cibw_before_all_macos.sh "${{ github.workspace }}"
if: runner.os == 'macOS'
# Hack for 3.8 bug (https://github.com/pypa/cibuildwheel/pull/1871#issuecomment-2161613619)
- uses: actions/setup-python@v5
with:
python-version: 3.8
if: runner.os == 'macOS' && matrix.arch == 'arm64'

# Now actually build the wheels
- name: Install scientific-python-nightly NumPy
run: |
echo "CIBW_BEFORE_BUILD=pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy \"Cython>=0.29.31,<4\" pkgconfig \"setuptools>=61\"" >> $GITHUB_ENV
echo "CIBW_BUILD_FRONTEND=pip; args: --no-build-isolation" >> $GITHUB_ENV
if: github.event_name == 'schedule'
# https://github.com/pypa/cibuildwheel/issues/1278#issuecomment-2052099631
- name: Build wheels
uses: larsoner/cibuildwheel@checkmacarm38
uses: pypa/cibuildwheel@v2.19.0
env:
# Note that tool.cibuildwheel "skip" in pyproject.toml also limits what gets built
CIBW_BUILD: "*_${{ matrix.arch }}"
Expand Down

0 comments on commit 51bb92d

Please sign in to comment.