Summary
Hello
i have a package that requires python <3.13. In my package pyproject.toml i have:
requires-python = ">=3.9,<3.13"
when installing this tool using uv tool install, i see the interpreter used is 3.13, which python and python3 alias points to 3.12 by default
$ uv python list
cpython-3.14.0b2-linux-x86_64-gnu <download available>
cpython-3.14.0b2+freethreaded-linux-x86_64-gnu <download available>
cpython-3.13.5-linux-x86_64-gnu <download available>
cpython-3.13.5+freethreaded-linux-x86_64-gnu <download available>
cpython-3.13.3-linux-x86_64-gnu /home/myuser/.local/share/uv/python/cpython-3.13.3-linux-x86_64-gnu/bin/python3.13
cpython-3.12.11-linux-x86_64-gnu <download available>
cpython-3.12.3-linux-x86_64-gnu /usr/bin/python3.12
cpython-3.12.3-linux-x86_64-gnu /usr/bin/python3 -> python3.12
cpython-3.11.13-linux-x86_64-gnu <download available>
cpython-3.11.12-linux-x86_64-gnu /home/myuser/.local/share/uv/python/cpython-3.11.12-linux-x86_64-gnu/bin/python3.11
cpython-3.10.18-linux-x86_64-gnu <download available>
cpython-3.10.17-linux-x86_64-gnu /home/myuser/.local/share/uv/python/cpython-3.10.17-linux-x86_64-gnu/bin/python3.10
cpython-3.10.16-linux-x86_64-gnu /home/myuser/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/bin/python3.10
cpython-3.10.14-linux-x86_64-gnu /home/myuser/.local/share/uv/python/cpython-3.10.14-linux-x86_64-gnu/bin/python3.10
cpython-3.9.23-linux-x86_64-gnu <download available>
cpython-3.8.20-linux-x86_64-gnu <download available>
pypy-3.11.11-linux-x86_64-gnu <download available>
pypy-3.10.16-linux-x86_64-gnu <download available>
pypy-3.9.19-linux-x86_64-gnu <download available>
pypy-3.8.16-linux-x86_64-gnu <download available>
graalpy-3.11.0-linux-x86_64-gnu <download available>
graalpy-3.10.0-linux-x86_64-gnu <download available>
graalpy-3.8.5-linux-x86_64-gnu <download available>
i see my app is installed in /home/myuser/.local/share/uv/tools/agpkg/lib/python3.13/site-packages/mytoolname.
When i force installation to python 3.12, it works:
uv tool install --python 3.12 mytoolname
Is it possible uv tool install does not respect the python-requires from a given package?
Platform
Windows WSL2
Version
0.7.13
Python version
python 3.12
Summary
Hello
i have a package that requires python <3.13. In my package
pyproject.tomli have:when installing this tool using
uv tool install, i see the interpreter used is 3.13, whichpythonandpython3alias points to 3.12 by defaulti see my app is installed in
/home/myuser/.local/share/uv/tools/agpkg/lib/python3.13/site-packages/mytoolname.When i force installation to python 3.12, it works:
Is it possible
uv tool installdoes not respect the python-requires from a given package?Platform
Windows WSL2
Version
0.7.13
Python version
python 3.12