From 2efa648f38e83a421aae82bc80002f8cabf92be7 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sun, 23 Mar 2025 15:03:30 -0400 Subject: [PATCH] fix: always resolve --python argument (#2328) (#2331) fix: always resolve --python argument (#2328) fix: always resolve the --python argument Signed-off-by: Henry Schreiner --- cibuildwheel/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cibuildwheel/util.py b/cibuildwheel/util.py index 905dd541..739f7757 100644 --- a/cibuildwheel/util.py +++ b/cibuildwheel/util.py @@ -705,6 +705,10 @@ def virtualenv( dependency_constraint_flags are ignored since nothing is installed in the venv. Otherwise, pip is installed, and setuptools + wheel if Python < 3.12. """ + + # virtualenv may fail if this is a symlink. + python = python.resolve() + assert python.exists() if use_uv: