From 0838df4ebb6da213b74a0cb9cf3287185cd90763 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Sat, 8 May 2021 19:33:28 +0100 Subject: [PATCH] Don't require pip! --- cibuildwheel/windows.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index 5bec98db..a21fa483 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -182,7 +182,10 @@ def setup_python( if not (installation_path / "Scripts" / "pip.exe").exists(): # perhaps pip is installed, but not available as 'pip.exe'... pip_is_installed = ( - call(["python", "-m", "pip", "--version"], env=env, cwd="C:\\cibw").returncode == 0 + call( + ["python", "-m", "pip", "--version"], env=env, cwd="C:\\cibw", check=False + ).returncode + == 0 ) if pip_is_installed: # if it's there, remove that version of pip.