From d9c515e3ae8da95a17fb98a2ea5d0f40e9e9103a Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Mon, 22 Jul 2024 16:59:33 +0200 Subject: [PATCH] force reinstall in InstallToVirtualEnvironment --- src/installlib/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/installlib/tasks.py b/src/installlib/tasks.py index 9f8e25e..3882707 100644 --- a/src/installlib/tasks.py +++ b/src/installlib/tasks.py @@ -77,7 +77,7 @@ def execute(self): env = self.virtual_env() if callable(self.virtual_env) else self.virtual_env activate_cmd = env.activate # --quiet is important: if PIPE gets full the process will hang - install_cmd = ["python", "-m", "pip", "install", "--quiet", *self.package_names] + install_cmd = ["python", "-m", "pip", "install", "--quiet", "--force-reinstall", *self.package_names] start_command([activate_cmd, "&&", *install_cmd]) except Exception as ex: return False, f"Failed to install package: {self.package_names} to virtual environment: {ex}"