Don't require pip!
This commit is contained in:
@@ -182,7 +182,10 @@ def setup_python(
|
|||||||
if not (installation_path / "Scripts" / "pip.exe").exists():
|
if not (installation_path / "Scripts" / "pip.exe").exists():
|
||||||
# perhaps pip is installed, but not available as 'pip.exe'...
|
# perhaps pip is installed, but not available as 'pip.exe'...
|
||||||
pip_is_installed = (
|
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 pip_is_installed:
|
||||||
# if it's there, remove that version of pip.
|
# if it's there, remove that version of pip.
|
||||||
|
|||||||
Reference in New Issue
Block a user