Skip to content

Commit 4c2ed1e

Browse files
authored
chore: remove pip <21.3 workaround (#1841)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 9f2a3cb commit 4c2ed1e

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

cibuildwheel/windows.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -255,26 +255,6 @@ def setup_python(
255255
env["PYTHON_ARCH"] = python_configuration.arch
256256
env["PIP_DISABLE_PIP_VERSION_CHECK"] = "1"
257257

258-
# pip older than 21.3 builds executables such as pip.exe for x64 platform.
259-
# The first re-install of pip updates pip module but builds pip.exe using
260-
# the old pip which still generates x64 executable. But the second
261-
# re-install uses updated pip and correctly builds pip.exe for the target.
262-
# This can be removed once ARM64 Pythons (currently 3.9 and 3.10) bundle
263-
# pip versions newer than 21.3.
264-
if python_configuration.arch == "ARM64" and Version(get_pip_version(env)) < Version("21.3"):
265-
call(
266-
"python",
267-
"-m",
268-
"pip",
269-
"install",
270-
"--force-reinstall",
271-
"--upgrade",
272-
"pip",
273-
*dependency_constraint_flags,
274-
env=env,
275-
cwd=venv_path,
276-
)
277-
278258
# upgrade pip to the version matching our constraints
279259
# if necessary, reinstall it to ensure that it's available on PATH as 'pip.exe'
280260
call(

0 commit comments

Comments
 (0)