11[build-system ]
2- requires = [" scikit-build-core" ]
3- build-backend = " scikit_build_core.build"
2+ requires = [" scikit-build-core>=0.10" ]
3+ build-backend = " backend"
4+ backend-path = [" _build_backend" ]
45
56[project ]
67name = " ninja"
@@ -50,7 +51,8 @@ Homepage = "http://ninja-build.org/"
5051"Source Code" = " https://github.com/scikit-build/ninja-python-distributions"
5152
5253[tool .scikit-build ]
53- minimum-version = " 0.9"
54+ minimum-version = " build-system.requires"
55+ ninja.make-fallback = true
5456build-dir = " build/{wheel_tag}"
5557wheel.py-api = " py3"
5658wheel.expand-macos-universal-tags = true
@@ -88,6 +90,7 @@ build-verbosity = 1
8890test-extras = " test"
8991test-command = " pytest {project}/tests"
9092test-skip = [" *-win_arm64" , " *-macosx_universal2:arm64" ]
93+ environment = { NINJA_PYTHON_DIST_ALLOW_NINJA_DEP = " 1" }
9194environment-pass = [" SETUPTOOLS_SCM_PRETEND_VERSION" ]
9295musllinux-x86_64-image = " musllinux_1_1"
9396musllinux-i686-image = " musllinux_1_1"
@@ -96,20 +99,24 @@ musllinux-ppc64le-image = "musllinux_1_1"
9699musllinux-s390x-image = " musllinux_1_1"
97100musllinux-armv7l-image = " musllinux_1_2"
98101
99- [tool .cibuildwheel .macos .environment ]
100- MACOSX_DEPLOYMENT_TARGET = " 10.9"
102+ [[tool .cibuildwheel .overrides ]]
103+ select = " *-macos*"
104+ inherit.environment = " append"
105+ environment = { MACOSX_DEPLOYMENT_TARGET = " 10.9" }
101106
102107[[tool .cibuildwheel .overrides ]]
103108select = " *-manylinux_{x86_64,i686}"
104109manylinux-x86_64-image = " manylinux2010"
105110manylinux-i686-image = " manylinux2010"
106111build-frontend = " pip"
112+ inherit.environment = " append"
107113environment = { LDFLAGS = " -static-libstdc++" }
108114inherit.test-command = " prepend"
109115test-command = " pip check"
110116
111117[[tool .cibuildwheel .overrides ]]
112118select = " *-musllinux_*"
119+ inherit.environment = " append"
113120environment = { LDFLAGS = " -static-libstdc++ -static-libgcc" }
114121
115122[[tool .cibuildwheel .overrides ]]
0 commit comments