Skip to content

Commit

Permalink
Build macosx/py38 wheel natively
Browse files Browse the repository at this point in the history
This speeds up the build, and also ensures that the correct wheel tag
is applied.

- pypa/cibuildwheel#1414
- https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
  • Loading branch information
stefanv committed Feb 8, 2023
1 parent 26e6295 commit 4870633
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/wheel_tests_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ jobs:
with:
python-version: "3.9"

# See:
# https://cibuildwheel.readthedocs.io/en/stable/faq/#macos-building-cpython-38-wheels-on-arm64
# https://github.com/pypa/cibuildwheel/issues/1414
- name: Install experimental MacOSX Py38
if: startsWith(matrix.cibw_python, 'cp38') && (matrix.cibw_arch == 'arm64')
run: |
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
sudo installer -pkg /tmp/Python38.pkg -target /
sh "/Applications/Python 3.8/Install Certificates.command"
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel
Expand Down

0 comments on commit 4870633

Please sign in to comment.