Skip to content

Commit

Permalink
Add script to build arm64 wheels locally
Browse files Browse the repository at this point in the history
  • Loading branch information
nabla-c0d3 committed Mar 19, 2023
1 parent 4b44216 commit 137da6a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
27 changes: 0 additions & 27 deletions build_linux_wheels.sh

This file was deleted.

13 changes: 13 additions & 0 deletions build_macos_arm64_wheels.sh
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

0 comments on commit 137da6a

Please sign in to comment.