Remove get-pip and use ensurepip instead

This commit is contained in:
Joe Rickerby
2021-05-08 17:55:10 +01:00
parent c09befbf1b
commit 62672c8101
4 changed files with 13 additions and 22328 deletions
+1 -2
View File
@@ -17,7 +17,6 @@ from .util import (
NonPlatformWheelError,
download,
get_build_verbosity_extra_flags,
get_pip_script,
prepare_command,
read_python_configs,
)
@@ -176,7 +175,7 @@ def setup_python(
# make sure pip is installed
if not (installation_path / "Scripts" / "pip.exe").exists():
call(["python", get_pip_script, *dependency_constraint_flags], env=env, cwd="C:\\cibw")
call(["python", "-m", "ensurepip", "--default-pip"], env=env, cwd="C:\\cibw")
assert (installation_path / "Scripts" / "pip.exe").exists()
where_pip = (
subprocess.run(