Skip to content

Commit 60b9cc9

Browse files
authored
fix: never call pip directly (#2537)
You can't change the running process in Windows. In pip 25.2, the format of the generated file changes, so this now breaks if you try to update to the latest pip (which can happen if deps are unpinned).
1 parent e2c7102 commit 60b9cc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cibuildwheel/venv.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def virtualenv(
143143
venv_env["VIRTUAL_ENV"] = str(venv_path)
144144
if not use_uv and pip_version == "embed":
145145
call(
146+
"python",
147+
"-m",
146148
"pip",
147149
"install",
148150
"--upgrade",

0 commit comments

Comments
 (0)