Skip to content

Commit 6d373ab

Browse files
Skip initial install
1 parent bbdbffc commit 6d373ab

2 files changed

Lines changed: 3 additions & 17 deletions

File tree

lib/qml/lib/demo.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,6 @@ def build(
171171
done = 0
172172
logger.info("Building %d demos", len(demos))
173173

174-
build_venv = Virtualenv(ctx.repo_root / venv) if venv else Virtualenv(ctx.build_venv_path)
175-
logger.info("Using build environment: %s", build_venv.path)
176-
cmds.pip_install(
177-
build_venv.python,
178-
requirements=ctx.build_requirements_file,
179-
use_uv=False,
180-
quiet=False,
181-
)
182-
183174
for demo in demos:
184175
execute_demo = execute and (demo.executable_latest if dev else demo.executable_stable)
185176
done += 1
@@ -190,12 +181,11 @@ def build(
190181
len(demos),
191182
execute_demo,
192183
)
193-
build_venv = Virtualenv(ctx.build_venv_path)
184+
build_venv = Virtualenv(ctx.repo_root / venv) if venv else Virtualenv(ctx.build_venv_path)
194185
cmds.pip_install(
195186
build_venv.python,
196187
requirements=ctx.build_requirements_file,
197-
use_uv=False,
198-
quiet=False,
188+
quiet=quiet,
199189
)
200190
try:
201191
_build_demo(

lib/qml/lib/virtual_env.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,4 @@ def _init(self):
2525
"""Initialize a virtual environment."""
2626
self.path.parent.mkdir(exist_ok=True)
2727

28-
subprocess.run([sys.executable, "-m", "venv", "--clear", self.path]).check_returncode()
29-
subprocess.run(
30-
[str(self.python), "-m", "pip", "install", "--upgrade", "pip"],
31-
check=True,
32-
)
28+
subprocess.run([sys.executable, "-m", "venv", "--clear", "--upgrade-deps", self.path]).check_returncode()

0 commit comments

Comments
 (0)