Open dalito opened 2 months ago
Interesting, somehow I've never heard of PY_PYTHON
. \cc @zanieb
I just discovered "pin" and thought that uv python pin 3.12
might configure uv to create a 3.12 venv by default afterwards but it doesn't. Then I found #4972 which seems to address this use case already.
As of
uv 0.2.37 (15dfb660a 2024-08-15)
the environment variablePY_PYTHON
is ignored. On my windows system I have 3.12 set as default version via the environment variablePY_PYTHON
but have also 3.13.0rc1 installed. If I runuv venv
a Python-3.13rc1 env is created.Feature request:
Read the preferred Python version for the virtual env from the env var
PY_PYTHON
(at least on Windows). This variable is used by the launcher and documented in the Python documentation under customizing-default-python-versions.