diff --git a/pyproject.toml b/pyproject.toml index 51b6481d6..9200354ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,6 +116,7 @@ before-build = "pip install -U setuptools-rust && curl https://sh.rustup.rs -sSf skip = "*-musllinux_*" archs = ["auto", "aarch64"] -[[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" +[tool.cibuildwheel.macos] +archs = ["auto", "universal2", "x86_64", "arm64"] +before-all = "rustup target add x86_64-apple-darwin aarch64-apple-darwin" +skip = "cp38-macosx_arm64 cp38-macosx_universal2 cp39-macosx_x86_64"