Don't require pip!

This commit is contained in:
Joe Rickerby
2021-05-08 19:33:28 +01:00
parent 084e50b060
commit 0838df4ebb
+4 -1
View File
@@ -182,7 +182,10 @@ def setup_python(
if not (installation_path / "Scripts" / "pip.exe").exists():
# perhaps pip is installed, but not available as 'pip.exe'...
pip_is_installed = (
call(["python", "-m", "pip", "--version"], env=env, cwd="C:\\cibw").returncode == 0
call(
["python", "-m", "pip", "--version"], env=env, cwd="C:\\cibw", check=False
).returncode
== 0
)
if pip_is_installed:
# if it's there, remove that version of pip.