forked from pool/python-scikit-build-core
58 lines
1.3 KiB
Diff
58 lines
1.3 KiB
Diff
|
Index: scikit_build_core-0.10.5/tests/conftest.py
|
||
|
===================================================================
|
||
|
--- scikit_build_core-0.10.5.orig/tests/conftest.py
|
||
|
+++ scikit_build_core-0.10.5/tests/conftest.py
|
||
|
@@ -35,51 +35,7 @@ BASE = DIR.parent
|
||
|
|
||
|
@pytest.fixture(scope="session")
|
||
|
def pep518_wheelhouse(tmp_path_factory: pytest.TempPathFactory) -> Path:
|
||
|
- wheelhouse = tmp_path_factory.mktemp("wheelhouse")
|
||
|
-
|
||
|
- subprocess.run(
|
||
|
- [
|
||
|
- sys.executable,
|
||
|
- "-m",
|
||
|
- "pip",
|
||
|
- "wheel",
|
||
|
- "--wheel-dir",
|
||
|
- str(wheelhouse),
|
||
|
- f"{BASE}",
|
||
|
- ],
|
||
|
- check=True,
|
||
|
- )
|
||
|
- packages = [
|
||
|
- "build",
|
||
|
- "cython",
|
||
|
- "hatchling",
|
||
|
- "pip",
|
||
|
- "pybind11",
|
||
|
- "setuptools",
|
||
|
- "virtualenv",
|
||
|
- "wheel",
|
||
|
- ]
|
||
|
-
|
||
|
- if importlib.util.find_spec("cmake") is not None:
|
||
|
- packages.append("cmake")
|
||
|
-
|
||
|
- if importlib.util.find_spec("ninja") is not None:
|
||
|
- packages.append("ninja")
|
||
|
-
|
||
|
- subprocess.run(
|
||
|
- [
|
||
|
- sys.executable,
|
||
|
- "-m",
|
||
|
- "pip",
|
||
|
- "download",
|
||
|
- "-q",
|
||
|
- "-d",
|
||
|
- str(wheelhouse),
|
||
|
- *packages,
|
||
|
- ],
|
||
|
- check=True,
|
||
|
- )
|
||
|
- return wheelhouse
|
||
|
+ return os.getcwd() + '/build'
|
||
|
|
||
|
|
||
|
class VEnv:
|