1
1
[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" ]
4
5
5
6
[project ]
6
7
name = " cmake"
@@ -51,10 +52,10 @@ cpack = "cmake:cpack"
51
52
ctest = " cmake:ctest"
52
53
53
54
[tool .scikit-build ]
54
- minimum-version = " 0.8 "
55
+ minimum-version = " build-system.requires "
55
56
build-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
58
59
wheel.py-api = " py3"
59
60
wheel.expand-macos-universal-tags = true
60
61
wheel.install-dir = " cmake/data"
@@ -65,22 +66,29 @@ template = '''
65
66
version = "${version}"
66
67
'''
67
68
69
+ [[tool .scikit-build .overrides ]]
70
+ if.env.CMAKE_PYTHON_DIST_FORCE_NINJA_DEP = true
71
+ ninja.make-fallback = false
72
+
68
73
69
74
[tool .cibuildwheel ]
70
75
build = " cp39-*"
71
76
test-extras = " test"
72
77
test-command = " pytest {project}/tests"
73
78
build-verbosity = 1
74
79
build-frontend = " build[uv]"
80
+ environment = { CMAKE_PYTHON_DIST_FORCE_NINJA_DEP = " 1" }
75
81
musllinux-x86_64-image = " musllinux_1_1"
76
82
musllinux-i686-image = " musllinux_1_1"
77
83
musllinux-aarch64-image = " musllinux_1_1"
78
84
musllinux-ppc64le-image = " musllinux_1_1"
79
85
musllinux-s390x-image = " musllinux_1_1"
80
86
musllinux-armv7l-image = " musllinux_1_2"
81
87
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" }
84
92
85
93
[tool .cibuildwheel .linux ]
86
94
before-all = " ./scripts/manylinux-build-and-install-openssl.sh"
0 commit comments