Skip to content

Commit 2efa648

Browse files
authored
fix: always resolve --python argument (#2328) (#2331)
fix: always resolve --python argument (#2328) fix: always resolve the --python argument Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent 42728e8 commit 2efa648

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: cibuildwheel/util.py

+4
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,10 @@ def virtualenv(
705705
dependency_constraint_flags are ignored since nothing is installed in the
706706
venv. Otherwise, pip is installed, and setuptools + wheel if Python < 3.12.
707707
"""
708+
709+
# virtualenv may fail if this is a symlink.
710+
python = python.resolve()
711+
708712
assert python.exists()
709713

710714
if use_uv:

0 commit comments

Comments
 (0)