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: