You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that uv does not allow you to specify multiple python versions on the command-line with --default. But specifying no version on the command-line and having multiple versions in .python-versions works. If you do that, then the symlinks are not consistent.
It seems to symlink python and python3 to the first version in the list and the last patch version to finish downloading as minor version. When you run it again and all versions are already downloaded it picks the lowest patch as minor version.
I am not sure what I want to happen. I assumed it would pick the highest version listed like it does without --default or maybe the first minor version in the list.
One way to fix this could be to not allow a bare --default without a single version.
I am also personally not sure why .python-versions exists or why one would have different patch versions of the same minor version, but I noticed this because I had accidentally changed directory to the uv repository where you have this file https://github.com/astral-sh/uv/blob/55502842c0117342c33266bad614c77d78ffd4bc/.python-versions when I just ran uv python install --preview --default and wondered why 3.8.12 was symlinked to python3.8 and not 3.8.18.
The text was updated successfully, but these errors were encountered:
I initially implemented this to take the first version in the list then later we decided we wouldn't allow it. I must have missed the .python-versions case — will look into it.
I know that uv does not allow you to specify multiple python versions on the command-line with --default. But specifying no version on the command-line and having multiple versions in .python-versions works. If you do that, then the symlinks are not consistent.
It seems to symlink python and python3 to the first version in the list and the last patch version to finish downloading as minor version. When you run it again and all versions are already downloaded it picks the lowest patch as minor version.
I am not sure what I want to happen. I assumed it would pick the highest version listed like it does without --default or maybe the first minor version in the list.
One way to fix this could be to not allow a bare --default without a single version.
I am also personally not sure why .python-versions exists or why one would have different patch versions of the same minor version, but I noticed this because I had accidentally changed directory to the uv repository where you have this file https://github.com/astral-sh/uv/blob/55502842c0117342c33266bad614c77d78ffd4bc/.python-versions when I just ran
uv python install --preview --default
and wondered why 3.8.12 was symlinked to python3.8 and not 3.8.18.The text was updated successfully, but these errors were encountered: