Skip to content

Commit 0d2622d

Browse files
authored
Merge pull request #33 from PyO3/test_runner
improve test runner infrastructure (PR 2/3)
2 parents a7914ce + 498ec60 commit 0d2622d

7 files changed

Lines changed: 871 additions & 721 deletions

File tree

tests/create_benchmark_data.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
from runner import VirtualEnv
1313

14+
from tests.test_import_hook.venv import PackageInstallerBackend
15+
1416
script_dir = Path(__file__).resolve().parent
1517
repo_root = script_dir.parent
1618

@@ -78,9 +80,9 @@ def create_benchmark_environment(root: Path, config: BenchmarkConfig) -> None:
7880

7981
log.info("creating benchmark environment at %s", root)
8082
root.mkdir(parents=True, exist_ok=False)
81-
venv = VirtualEnv.create(root / "venv", Path(sys.executable))
83+
venv = VirtualEnv.create(root / "venv", Path(sys.executable), PackageInstallerBackend.UV, offline=False)
8284

83-
venv.install_editable_package(repo_root)
85+
venv.installer.install(repo_root, editable=True)
8486

8587
python_package_names = []
8688
python_package_paths = []

0 commit comments

Comments
 (0)