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 = " cmake"
@@ -51,10 +52,10 @@ cpack = "cmake:cpack"
5152ctest = " cmake:ctest"
5253
5354[tool .scikit-build ]
54- minimum-version = " 0.8 "
55+ minimum-version = " build-system.requires "
5556build-dir = " build/{wheel_tag}"
56- cmake.version = " " # We are cmake, so don't request cmake
57- ninja.make-fallback = false
57+ cmake.version = " >=3.13 " # Since 3.24.0, CMake requires CMake 3.13+ to build itself
58+ ninja.make-fallback = true
5859wheel.py-api = " py3"
5960wheel.expand-macos-universal-tags = true
6061wheel.install-dir = " cmake/data"
@@ -65,22 +66,29 @@ template = '''
6566version = "${version}"
6667'''
6768
69+ [[tool .scikit-build .overrides ]]
70+ if.env.CMAKE_PYTHON_DIST_FORCE_NINJA_DEP = true
71+ ninja.make-fallback = false
72+
6873
6974[tool .cibuildwheel ]
7075build = " cp39-*"
7176test-extras = " test"
7277test-command = " pytest {project}/tests"
7378build-verbosity = 1
7479build-frontend = " build[uv]"
80+ environment = { CMAKE_PYTHON_DIST_FORCE_NINJA_DEP = " 1" }
7581musllinux-x86_64-image = " musllinux_1_1"
7682musllinux-i686-image = " musllinux_1_1"
7783musllinux-aarch64-image = " musllinux_1_1"
7884musllinux-ppc64le-image = " musllinux_1_1"
7985musllinux-s390x-image = " musllinux_1_1"
8086musllinux-armv7l-image = " musllinux_1_2"
8187
82- [tool .cibuildwheel .macos .environment ]
83- MACOSX_DEPLOYMENT_TARGET = " 10.10"
88+ [[tool .cibuildwheel .overrides ]]
89+ select = " *-macos*"
90+ inherit.environment = " append"
91+ environment = { MACOSX_DEPLOYMENT_TARGET = " 10.10" }
8492
8593[tool .cibuildwheel .linux ]
8694before-all = " ./scripts/manylinux-build-and-install-openssl.sh"
0 commit comments