From 36ef6de2d61339d8215c9ff0c69bad430d880c3f Mon Sep 17 00:00:00 2001 From: mayeut Date: Thu, 13 May 2021 20:40:01 +0200 Subject: [PATCH] Force reinstall pip --- cibuildwheel/macos.py | 4 ++-- cibuildwheel/windows.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 41007bf8..2a3b1881 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -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", ) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 4a87b53a..addd3bc0 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -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, )