diff --git a/.github/workflows/build_python_3.yml b/.github/workflows/build_python_3.yml index fac67e45f82..a3d6066dc0c 100644 --- a/.github/workflows/build_python_3.yml +++ b/.github/workflows/build_python_3.yml @@ -132,6 +132,10 @@ jobs: CIBW_BEFORE_ALL_WINDOWS: rustup target add i686-pc-windows-msvc CIBW_BEFORE_ALL_MACOS: rustup target add aarch64-apple-darwin CIBW_ENVIRONMENT_LINUX: PATH=$HOME/.cargo/bin:$PATH CMAKE_BUILD_PARALLEL_LEVEL=24 + # SYSTEM_VERSION_COMPAT is a workaround for versioning issue, a.k.a. + # `platform.mac_ver()` reports incorrect MacOS version at 11.0 + # See: https://stackoverflow.com/a/65402241 + CIBW_ENVIRONMENT_MACOS: CMAKE_BUILD_PARALLEL_LEVEL=24 SYSTEM_VERSION_COMPAT=0 CIBW_REPAIR_WHEEL_COMMAND_LINUX: | mkdir ./tempwheelhouse && unzip -l {wheel} | grep '\.so' && diff --git a/pyproject.toml b/pyproject.toml index a42954445ff..df5fbdcdbb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -204,12 +204,6 @@ test-command = ["python {project}/tests/smoke_test.py"] # Skip trying to test arm64 builds on Intel Macs test-skip = "*-macosx_universal2:arm64" -[tool.cibuildwheel.macos.environment] -# Workaround for Macos 11.0 versioning issue, a.k.a. -# `platform.mac_ver()` reports incorrect MacOS version at 11.0 -# See: https://stackoverflow.com/a/65402241 -SYSTEM_VERSION_COMPAT = "0" - [tool.ruff] exclude = [ ".riot",