-
Notifications
You must be signed in to change notification settings - Fork 980
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-installed PyPy versions take precedence over non-uv CPython versions #7118
Comments
Hm yeah we'll use a managed Python over an unmanaged one. You think we should prefer the system CPython in this case? You can do |
Hmmm, fair enough for me, but kinda surprising. I would've never expected to get a PyPy when asking for "Python 3.9". IDK, maybe I'm just set in my ways, by in my mind python3.9 is CPython and pypy3.9 is PyPy. |
Yeah that makes sense. We should probably change the ordering, though it'll be a bit of a pain. |
I've argued this before too. :) |
Oh I might be fixing this by accident while working on #7286 haha |
To add a datapoint, i'm just running into this and also found the behavior unexpected, especially because the output of a command depends on what other uv-managed pythons were previously installed uv python install python3.8 pypy3.8
uv venv --python python3.8 .venv # venv created with cpython 3.8 vs uv python install pypy3.8
uv venv --python python3.8 .venv # venv created with pypy 3.8 Also this produces different results whether run together or separately: uv python install pypy3.8 python3.8 # installs both cpython & pypy
uv python install pypy3.8
uv python install python3.8 # wont install anything -> already found a 3.8 python pypy
|
Closes #7118 This only really affects managed interpreters, as we exclude alternative Python implementations from the search path during the `VersionRequest::executable_names` part of discovery.
uv 0.4.6 (84f25e8cf 2024-09-05)
I've been playing a bit with
uv python
and installed pypy3.9 with it and forgot about it.Now, whenever I run
uv venv --python python3.9
I get pypy3.9 instead. It just saysUsing Python 3.9.19
.My guess is that uv-installed Pythons take hard precedence, because uninstalling it starts giving me my proper Python 3.9 from homebrew, despite the fact I still have a pyp3.9 installed, too.
The text was updated successfully, but these errors were encountered: