diff --git a/pyproject.toml b/pyproject.toml index 51b6481d6..ee9f503c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,6 +116,18 @@ before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf skip = "*-musllinux_*" archs = ["auto", "aarch64"] +[tool.cibuildwheel.macos] +archs = ["auto", "universal2", "x86_64", "arm64"] +#skip = "*-macosx_arm64 *-macosx_universal2 *-macosx_x86_64" + +[[tool.cibuildwheel.overrides]] +select = "*-macosx_x86_64" +before-build = "rustup target add x86_64-apple-darwin" + [[tool.cibuildwheel.overrides]] select = "*-macosx_arm64" -before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf | sh -s -- --profile=minimal -y && rustup target add x86_64-apple-darwin" +before-build = "rustup target add aarch64-apple-darwin" + +[[tool.cibuildwheel.overrides]] +select = "*-macosx_universal2" +before-build = "rustup target add x86_64-apple-darwin aarch64-apple-darwin"