Skip to content

Commit c551c77

Browse files
committed
fix deployment target for python 3.11
1 parent 208082a commit c551c77

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,11 @@ before-build = ["yum install -y ccache"]
475475

476476
[tool.cibuildwheel.macos]
477477
before-build = ["brew install ccache"]
478+
# nanobind uses C++17 aligned new/delete (std::align_val_t), which the runtime only provides on macOS 10.13+.
479+
# cp310/cp311's framework defaults to a 10.9 deployment target (used for the x86_64 slice of x86_64/universal2
480+
# wheels), so nanobind fails to compile there; cp312+ frameworks already target 10.13+. Pin 10.14 so every CPython
481+
# version builds (arm64 slices are 11.0 regardless).
482+
environment = { MACOSX_DEPLOYMENT_TARGET = "10.14" }
478483

479484
[tool.cibuildwheel.windows]
480485
before-build = ["choco install ccache"]

0 commit comments

Comments
 (0)