From ced9a1e1d2f131dcecf61f719e77e3a1d5a864d2 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 21 Oct 2025 17:44:56 +0100 Subject: [PATCH] Fix venv creation --- .../ibex_install_utils/tasks/system_tasks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installation_and_upgrade/ibex_install_utils/tasks/system_tasks.py b/installation_and_upgrade/ibex_install_utils/tasks/system_tasks.py index 8c23c05..2695223 100644 --- a/installation_and_upgrade/ibex_install_utils/tasks/system_tasks.py +++ b/installation_and_upgrade/ibex_install_utils/tasks/system_tasks.py @@ -165,10 +165,12 @@ def create_virtual_envs(self) -> None: expected_return_codes=0, ).run() + activate_script = os.path.join(venv, "Scripts", "activate") + RunProcess( working_dir=os.path.join(directory), - executable_file=UV, - prog_args=["pip", "sync", "requirements-frozen.txt"], + executable_file=os.environ["COMSPEC"], + prog_args=["/c", f"{activate_script} && {UV} pip sync requirements-frozen.txt"], env={}, expected_return_codes=0, ).run()