From d16d5eb1b33d447a131250760bbd695cd023b1dd Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Wed, 20 Sep 2023 16:35:03 +0200 Subject: [PATCH] Add cibuildwheel overrides for cross-compiling (#99) (#100) --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 80b9b60f..b7607878 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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_ARCH="generic", BLIS_COMPILER="clang -arch arm64" }