Skip to content

Commit

Permalink
Add cibuildwheel overrides for cross-compiling (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianeboyd authored Sep 20, 2023
1 parent b851fc3 commit 4de1652
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ requires = [
"numpy>=1.25.0; python_version >= '3.9'",
]
build-backend = "setuptools.build_meta"

# NOTE: overrides here are only used if CIBW_ENVIRONMENT is not set
[tool.cibuildwheel]
environment = { PIP_CONSTRAINT="build-constraints.txt" }

[[tool.cibuildwheel.overrides]]
select = "*-macosx_arm64"
environment = { PIP_CONSTRAINT="build-constraints.txt", BLIS_COMPILER="clang -arch arm64" }

0 comments on commit 4de1652

Please sign in to comment.