diff --git a/misc/build_wheel.py b/misc/build_wheel.py index 13633405bf77..bf27f11d2c25 100644 --- a/misc/build_wheel.py +++ b/misc/build_wheel.py @@ -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