Fix fall back to system python should not change the python bin inside the new venv

This commit is contained in:
clearml 2025-06-23 12:37:38 +03:00
parent c76dfe7ce6
commit ba854aa53b

View File

@ -84,7 +84,6 @@ class VirtualenvPip(SystemPip, PackageManager):
print("WARNING: virtualenv and venv failed with [{}] trying virtualenv with python [{}]".format(
self.python, sys.executable))
self.python = str(sys.executable)
self._bin = Path(self.python)
self.session.command(
self.python, "-m", "virtualenv", self.path, *self.create_flags()
).check_call()