From 60b9cc95db51f9f5e48562fcb1b3f7ac3f9cb4a1 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 31 Jul 2025 12:26:07 -0400 Subject: [PATCH] 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). --- cibuildwheel/venv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cibuildwheel/venv.py b/cibuildwheel/venv.py index d004753c..e4d3c872 100644 --- a/cibuildwheel/venv.py +++ b/cibuildwheel/venv.py @@ -143,6 +143,8 @@ def virtualenv( venv_env["VIRTUAL_ENV"] = str(venv_path) if not use_uv and pip_version == "embed": call( + "python", + "-m", "pip", "install", "--upgrade",