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>
This commit is contained in:
Henry Schreiner
2025-03-23 15:03:30 -04:00
committed by GitHub
parent 42728e866b
commit 2efa648f38
+4
View File
@@ -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: