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, )