Skip to content

Commit

Permalink
Fix: macOS wheels were only build for x86_64
Browse files Browse the repository at this point in the history
Defining correct architectures in the pyproject.toml leads to "universal" builds being produced, which work for both x86_64 and arm64 architectures of macOS.
  • Loading branch information
regcs committed Jan 14, 2024
1 parent 45cea80 commit 756df0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ test-skip = "cp312*"
# architectures, and that's no good.
before-build = "bash .github/rmstuff.sh"

[tool.cibuildwheel.macos]
# Specify universal2 building for macOS
architectures = ["x86_64", "arm64"]

[tool.black]
# Just a placeholder because I have a plugin that won't run without a section in
# pyproject.toml
Expand Down

0 comments on commit 756df0c

Please sign in to comment.