Skip to content

Commit 08165ff

Browse files
larsonermayeut
andauthored
DOC: Document macOS 3.8 arm64 workaround (#1871)
* BUG: Fix bug with macOS 3.8 arm64 URL * TST: Ping * DOC: Update * FIX: Remove old * DOC: Both * Apply suggestions from code review Co-authored-by: Matthieu Darbois <[email protected]> --------- Co-authored-by: Matthieu Darbois <[email protected]>
1 parent 9bb0383 commit 08165ff

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

docs/faq.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -363,16 +363,25 @@ If you're building on an arm64 runner, you might notice something strange about
363363

364364
This is fine for simple C extensions, but for more complicated builds on arm64 it becomes an issue.
365365

366-
So, if the cross-compilation is an issue for you, there is an 'experimental' installer available that's built natively for arm64.
366+
So, if you want to build macOS arm64 wheels on an arm64 runner (e.g., `macos-14`) on Python 3.8, before invoking cibuildwheel, you should install a native arm64 Python 3.8 interpreter on the runner:
367367

368-
To use this installer and perform native CPython 3.8 building, before invoking cibuildwheel, install the universal2 version of Python on your arm64 runner, something like:
369368

369+
!!! tab "GitHub Actions"
370370

371-
```bash
372-
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
373-
sudo installer -pkg /tmp/Python38.pkg -target /
374-
sh "/Applications/Python 3.8/Install Certificates.command"
375-
```
371+
```yaml
372+
- uses: actions/setup-python@v5
373+
with:
374+
python-version: 3.8
375+
if: runner.os == 'macOS' && runner.arch == 'ARM64'
376+
```
377+
378+
!!! tab "Generic"
379+
380+
```bash
381+
curl -o /tmp/Python38.pkg https://www.python.org/ftp/python/3.8.10/python-3.8.10-macos11.pkg
382+
sudo installer -pkg /tmp/Python38.pkg -target /
383+
sh "/Applications/Python 3.8/Install Certificates.command"
384+
```
376385

377386
Then cibuildwheel will detect that it's installed and use it instead. However, you probably don't want to build x86_64 wheels on this Python, unless you're happy with them only supporting macOS 11+.
378387

0 commit comments

Comments
 (0)