Skip to content

Commit

Permalink
force reinstall in InstallToVirtualEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Jul 22, 2024
1 parent e08f433 commit d9c515e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/installlib/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit d9c515e

Please sign in to comment.