From 462c99589a225e8c44a682e210bdd74b90be512c Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Sat, 22 Mar 2025 02:32:25 -0400 Subject: [PATCH] fix: always resolve --python argument (#2328) fix: always resolve the --python argument Signed-off-by: Henry Schreiner --- cibuildwheel/venv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cibuildwheel/venv.py b/cibuildwheel/venv.py index 53c03446..24f2fe5c 100644 --- a/cibuildwheel/venv.py +++ b/cibuildwheel/venv.py @@ -96,6 +96,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: