Skip to content

Commit

Permalink
Build universal2 wheels for macOS instead of plain arm64 wheels becau…
Browse files Browse the repository at this point in the history
…se the libraries are built as universal2 binaries anyway.
  • Loading branch information
scoder committed Jan 10, 2024
1 parent fbccd5f commit 8422dff
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pyproject.toml
Expand Up @@ -30,8 +30,7 @@ archs = ["AMD64", "x86"]

[tool.cibuildwheel.macos]
# https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
# x86_64 and one of universal2 or amr64 wheels, since unviversal pack what is already in
# x86_64, currently universal2 is not built but arm64 is built instead
# x86_64 is still reuqired because of older pips, when remcomendation changes we can
# build only universal2
archs = ["x86_64", "arm64"]
# x86_64 and one of universal2 or arm64 wheels. x86_64 is still required by older pips,
# so additional arm64 wheels would suffice. However, since the library build uses a mixed
# amd64/arm64 setup, we build universal2 wheels regardless.
archs = ["x86_64", "universal2"]

0 comments on commit 8422dff

Please sign in to comment.