Force reinstall pip

This commit is contained in:
mayeut
2021-05-13 20:40:01 +02:00
parent ee5dfc6f90
commit 36ef6de2d6
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -234,9 +234,9 @@ def setup_python(
# ensure pip is installed
call(["python", "-m", "ensurepip"], env=env, cwd="/tmp")
# ensure we have the version that matches our constraints
# use "--force-install" ensures that it's installed as 'pip'
# use "--force-reinstall" ensures that it's installed as 'pip'
call(
["python", "-m", "pip", "install", "--force-install", "pip", *dependency_constraint_flags],
["python", "-m", "pip", "install", "--force-reinstall", "pip", *dependency_constraint_flags],
env=env,
cwd="/tmp",
)
+2 -2
View File
@@ -178,9 +178,9 @@ def setup_python(
# ensure pip is installed
call(["python", "-m", "ensurepip"], env=env, cwd="C:\\cibw")
# ensure we have the version that matches our constraints
# use "--force-install" ensures that it's installed as 'pip.exe'
# use "--force-reinstall" ensures that it's installed as 'pip.exe'
call(
["python", "-m", "pip", "install", "--force-install", "pip", *dependency_constraint_flags],
["python", "-m", "pip", "install", "--force-reinstall", "pip", *dependency_constraint_flags],
env=env,
)