Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv python list doesn't pick up non-base variants of python #10586

Closed
reteps opened this issue Jan 14, 2025 · 1 comment · Fixed by #10722
Closed

uv python list doesn't pick up non-base variants of python #10586

reteps opened this issue Jan 14, 2025 · 1 comment · Fixed by #10722
Assignees
Labels
bug Something isn't working

Comments

@reteps
Copy link

reteps commented Jan 14, 2025

Since #9781, we have been able to install more optimized builds of python. However, uv doesn't recognize these builds as legitimate in my understanding because of this line

.is_some_and(|filename| filename.ends_with(&platform_key))

bash-5.2# uv python list --only-installed --all-versions --all-arches --all-platforms --verbose
DEBUG uv 0.5.18
DEBUG Searching for any Python interpreter in managed installations or search path
DEBUG Searching for managed installations at `/root/.local/share/uv/python`
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/usr/bin/python3` (search path)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/usr/bin/python3.9` (search path)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/bin/python3` (search path)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/bin/python3.9` (search path)
cpython-3.9.20-linux-x86_64-gnu    /usr/bin/python3.9
cpython-3.9.20-linux-x86_64-gnu    /usr/bin/python3 -> python3.9
cpython-3.9.20-linux-x86_64-gnu    /bin/python3.9
cpython-3.9.20-linux-x86_64-gnu    /bin/python3 -> python3.9

bash-5.2# ls /root/.local/share/uv/python
cpython-3.10.16-linux-x86_64_v2-gnu
bash-5.2# mv /root/.local/share/uv/python/cpython-3.10.16-linux-x86_64_v2-gnu /root/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu
bash-5.2# uv python list --only-installed --all-versions --all-arches --all-platforms --verbose
DEBUG uv 0.5.18
DEBUG Searching for any Python interpreter in managed installations or search path
DEBUG Searching for managed installations at `/root/.local/share/uv/python`
DEBUG Found managed installation `cpython-3.10.16-linux-x86_64-gnu`
DEBUG Found `cpython-3.10.16-linux-x86_64-gnu` at `/root/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/bin/python3.10` (managed installations)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/usr/bin/python3` (search path)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/usr/bin/python3.9` (search path)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/bin/python3` (search path)
DEBUG Found `cpython-3.9.20-linux-x86_64-gnu` at `/bin/python3.9` (search path)
cpython-3.10.16-linux-x86_64-gnu    /root/.local/share/uv/python/cpython-3.10.16-linux-x86_64-gnu/bin/python3.10
cpython-3.9.20-linux-x86_64-gnu     /usr/bin/python3.9
cpython-3.9.20-linux-x86_64-gnu     /usr/bin/python3 -> python3.9
cpython-3.9.20-linux-x86_64-gnu     /bin/python3.9
cpython-3.9.20-linux-x86_64-gnu     /bin/python3 -> python3.9
@reteps reteps changed the title uv python install doesn't pick up non-base variants of python uv python list doesn't pick up non-base variants of python Jan 14, 2025
@charliermarsh charliermarsh added the bug Something isn't working label Jan 14, 2025
@charliermarsh
Copy link
Member

Thanks, I think that's a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants