-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add script to build arm64 wheels locally
- Loading branch information
1 parent
4b44216
commit 137da6a
Showing
2 changed files
with
13 additions
and
27 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Python 3.9+ arm64 is required | ||
python -m pip install "cibuildwheel<2.13" | ||
|
||
export CIBW_ARCHS_MACOS="arm64" | ||
export CIBW_BEFORE_ALL='python -m pip install invoke && invoke build.deps' | ||
export CIBW_BEFORE_BUILD='python -m pip install invoke && invoke build.nassl' | ||
export CIBW_BUILD='cp39-* cp310-* cp311-*' | ||
export CIBW_TEST_COMMAND='python -m pytest {project}/tests' | ||
export CIBW_TEST_REQUIRES="pytest" | ||
|
||
python -m cibuildwheel --output-dir wheelhouse --platform macos |