Skip to content

Commit 733afe5

Browse files
committed
tests: add cmake or ninja if present
Signed-off-by: Henry Schreiner <[email protected]>
1 parent bbd50b2 commit 733afe5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

tests/packages/cython_pxd_editable/pkg1/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@ name = "pkg1"
1010
version = "1.0.0"
1111

1212
[tool.scikit-build]
13-
wheel.packages = ["src/pkg1"]
1413
ninja.make-fallback = false

tests/packages/cython_pxd_editable/pkg2/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ name = "pkg2"
1010
version = "1.0.0"
1111

1212
[tool.scikit-build]
13-
wheel.packages = ["src/pkg2"]
13+
ninja.make-fallback = false

tests/test_editable.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,14 @@ def test_cython_pxd(monkeypatch, tmp_path, editable, editable_mode, isolated):
7373
tmp_path1.mkdir()
7474
process_package(package1, tmp_path1, monkeypatch)
7575

76-
isolated.install("pip>23", "cython", "scikit-build-core")
76+
ninja = [
77+
"ninja" for f in isolated.wheelhouse.iterdir() if f.name.startswith("ninja-")
78+
]
79+
cmake = [
80+
"cmake" for f in isolated.wheelhouse.iterdir() if f.name.startswith("cmake-")
81+
]
82+
83+
isolated.install("pip>23", "cython", "scikit-build-core", *ninja, *cmake)
7784

7885
isolated.install(
7986
"-v",

0 commit comments

Comments
 (0)