astral-sh/uv

uv python list doesn't show all possible combinations of python installation

Aperta

#4988 aperta il 11 lug 2024

 (3 commenti) (1 reazione) (0 assegnatari)Rust (3111 fork)batch import
clihelp wanted

Metriche repository

Star
 (84.934 stelle)
Metriche merge PR
 (Merge medio 7g 16h) (259 PR mergiate in 30 g)

Descrizione

Hi! When running (today installed) uv to install python locally and discover some, it doesn't show all possible options for current architecture:

$ uv python list
warning: `uv python list` is experimental and may change without warning.
cpython-3.12.3-linux-x86_64-musl     <download available>
cpython-3.12.3-linux-x86_64-gnu      /usr/bin/python3
cpython-3.12.3-linux-x86_64-gnu      /bin/python3
cpython-3.11.9-linux-x86_64-musl     <download available>
cpython-3.10.14-linux-x86_64-musl    <download available>
cpython-3.9.19-linux-x86_64-musl     <download available>
cpython-3.8.19-linux-x86_64-musl     <download available>
cpython-3.7.9-linux-x86_64-musl      <download available>

But, when you try by guess-work to install cpython-3.11.9-linux-x86_64-gnu, it works:

$ uv python install cpython-3.11.9-linux-x86_64-gnu
warning: `uv python install` is experimental and may change without warning.
Searching for Python versions matching: cpython-3.11.9-linux-x86_64-gnu
Installed Python 3.11.9 to: /home/khazakar/.local/share/uv/python/cpython-3.11.9-linux-x86_64-gnu
Installed 1 version in 3.44s

I'm running Ubuntu 24.04, uv version 0.2.24, x86_64 arch.

Guida contributor