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

FR: (uv venv) add support for '-p 3.13t' as a shorthand for '-p 3.13*t' ? #4828

Closed
neutrinoceros opened this issue Jul 5, 2024 · 1 comment · Fixed by #7431
Closed

FR: (uv venv) add support for '-p 3.13t' as a shorthand for '-p 3.13*t' ? #4828

neutrinoceros opened this issue Jul 5, 2024 · 1 comment · Fixed by #7431
Assignees
Labels
enhancement New feature or improvement to existing functionality uv python Related to the uv python interface

Comments

@neutrinoceros
Copy link

pyenv recently introduced free-threading variants for Python 3.13:
pyenv/pyenv#2995
pyenv/pyenv#3001

Assuming I installed Python 3.13.0b3 (both variants) as:

pyenv install 3.13.0b3 3.13t-dev
pyenv local 3.13.0b3 3.13t-dev

and as of pyenv 2.4.4 + uv 0.2.21, the following invocations work:

$ python3.13 --version
Python 3.13.0b3

$ python3.13t --version
Python 3.13.0b3+

$ uv venv -p 3.13
Using Python 3.13.0b3 interpreter at: /Users/clm/.pyenv/versions/3.13.0b3/bin/python3.13
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate

$ uv venv -p python3.13
Using Python 3.13.0b3 interpreter at: /Users/clm/.pyenv/versions/3.13.0b3/bin/python3.13
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate

$ uv venv -p python3.13t
Using Python 3.13.0b3 interpreter at: /Users/clm/.pyenv/versions/3.13t-dev/bin/python3.13t
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate

but this one doesn't:

$ uv venv -p 3.13t
  × No interpreter found for executable name `3.13t` in system path

This is still fresh paint and not a well established naming convention yet, but since it's pushed in pyenv by PEP 703 author Sam Gross, maybe it's reasonable to support it already ?
It certainly wasn't obvious to me that I could use uv venv -p python3.13t, and I discovered it by trial and error.

@zanieb
Copy link
Member

zanieb commented Jul 5, 2024

Related #4400

Agree we should add support for requesting free-threaded builds via shorthand.

@zanieb zanieb added the enhancement New feature or improvement to existing functionality label Jul 5, 2024
@zanieb zanieb added the uv python Related to the uv python interface label Aug 27, 2024
@zanieb zanieb self-assigned this Sep 8, 2024
@zanieb zanieb closed this as completed in 77c2496 Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement to existing functionality uv python Related to the uv python interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants