DEVX-151: perf: skip dep resolution in setup-image with --no-deps

This commit is contained in:
emil User
2026-08-07 21:01:06 +00:00
parent 7dd15f1461
commit ccb7023965
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -64,9 +64,11 @@ def _install_in_image(
link.symlink_to(opt_venv)
# Build pip install command
# --no-deps: the CI image already has all dependencies pre-installed.
# We only need to install the project itself in editable mode.
spec = f".[{extras}]" if extras else "."
pip_bin = str(Path(venv_link) / "bin" / "pip")
cmd = [pip_bin, "install", "--no-cache-dir", "-e", spec]
cmd = [pip_bin, "install", "--no-cache-dir", "--no-deps", "-e", spec]
env = os.environ.copy()
try: