Run in the correct venv

This commit is contained in:
Joe Rickerby
2021-05-08 18:26:19 +01:00
parent 6007cdda14
commit 7ffa9bbb21
+1 -1
View File
@@ -180,7 +180,7 @@ def setup_python(
# perhaps pip is installed, but not available as 'pip.exe'...
if (installation_path / "Scripts" / "pip3.exe").exists():
# if it's there, remove that version of pip.
call(["python", "-m", "pip", "uninstall", "--yes", "pip"])
call(["python", "-m", "pip", "uninstall", "--yes", "pip"], env=env, cwd="C:\\cibw")
# Then reinstall. '--default-pip' ensures that it's installed as 'pip.exe'
call(["python", "-m", "ensurepip", "--default-pip"], env=env, cwd="C:\\cibw")