Skip to content

Commit 499b767

Browse files
committed
build: remove cmake as a build-system dependency
Instead, add the tool.scikit-build.cmake.version attribute, and link it to CMakeLists so it automatically checks if the required cmake version is already installed. This prevents the unnecessary installation of cmake python wheels.
1 parent fe91b03 commit 499b767

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build-system]
22
requires = [
3-
"cmake>=3.15",
43
"scikit-build-core"
54
]
65
build-backend = "scikit_build_core.build"
@@ -23,6 +22,7 @@ test-command = "pytest {project}/test"
2322
test-extras = ["test"]
2423

2524
[tool.scikit-build]
25+
cmake.version = "CMakeLists.txt"
2626
wheel.packages = ["src/pbk"]
2727
wheel.install-dir = "pbk"
2828
sdist.include = [

0 commit comments

Comments
 (0)