-
Notifications
You must be signed in to change notification settings - Fork 682
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
Interpreter discovery difference with and without --python
flag
#4277
Comments
Interesting. Will investigate.. |
Can you provide verbose logs? |
I get something like
and the same if I include the |
Sure. Without the flag:
When passing the flag a lot more happens:
|
Ah so the difference here is that unless you request Python 3.12 we won't look for an interpreter with the
vs
If you were to pass the flag |
I was thinking about adding this but am actually unsure where we'd stop. Like should we be checking for |
@konstin do you have any ideas here? |
I think at minimum the lowest possible matching version should be checked for, as that can be pretty much guaranteed to be a released version. I.e. When it comes to scanning across many possible version numbers, shouldn't it be possible to come up with a reasonable upper bound based on the current date? The Python release schedule is fairly predictable after all, so in the event of no upper bound being given for the Python version, can't an upper bound be set to |
We need to split |
There's |
I'm going to close this in favor of #4709 which specifies a way we could improve this behavior. At the moment though, this is working as designed. |
@matterhorn103 this is resolved in #5148 |
Sorry for the spree of issue opening and comment writing, I'm just raising things as I find them. I'm very excited about what you're doing with uv :)
uv version: 0.2.11
OS: Linux
A Python interpreter that is found successfully for a given version string passed with the
--python
flag is not found when the same version is mandated byrequires-python
in apyproject.toml
.It is easiest to demonstrate what I mean, I think:
The text was updated successfully, but these errors were encountered: