Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Apple Silicon support when building wheels #10145

Merged
merged 1 commit into from
Feb 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions misc/build_wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ def create_environ(python_version: str) -> Dict[str, str]:
# Don't build 32-bit wheels
env['CIBW_SKIP'] = "*-manylinux_i686 *-win32"

# Apple Silicon support
# When cross-compiling on Intel, it is not possible to test arm64 and
# the arm64 part of a universal2 wheel. Warnings will be silenced with
# following CIBW_TEST_SKIP
env['CIBW_ARCHS_MACOS'] = "x86_64 arm64"
env['CIBW_TEST_SKIP'] = "*-macosx_arm64"

env['CIBW_BUILD_VERBOSITY'] = '1'

# mypy's isolated builds don't specify the requirements mypyc needs, so install
Expand Down