Skip to content

Commit 3adb1ec

Browse files
authored
Merge pull request #286 from ISISComputingGroup/fix_venv_creation
Fix venv creation
2 parents c37cc3f + ced9a1e commit 3adb1ec

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

installation_and_upgrade/ibex_install_utils/tasks/system_tasks.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ def create_virtual_envs(self) -> None:
165165
expected_return_codes=0,
166166
).run()
167167

168+
activate_script = os.path.join(venv, "Scripts", "activate")
169+
168170
RunProcess(
169171
working_dir=os.path.join(directory),
170-
executable_file=UV,
171-
prog_args=["pip", "sync", "requirements-frozen.txt"],
172+
executable_file=os.environ["COMSPEC"],
173+
prog_args=["/c", f"{activate_script} && {UV} pip sync requirements-frozen.txt"],
172174
env={},
173175
expected_return_codes=0,
174176
).run()

0 commit comments

Comments
 (0)