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-provider for managing Python installations #21362

Open
d-m opened this issue Aug 28, 2024 · 3 comments
Open

uv-python-provider for managing Python installations #21362

d-m opened this issue Aug 28, 2024 · 3 comments

Comments

@d-m
Copy link

d-m commented Aug 28, 2024

The uv tool can now support managing Python installations and would be a good candidate for a provider similar to pyenv-pants-provider.

Documentation for uv and how it can be used to install Python is here.

@sureshjoshi
Copy link
Member

There is a WIP for the underlying functionality here (#19462)

Essentially using PBS directly. I think the PR just needs some TLC, and we're off to the races.

@huonw
Copy link
Contributor

huonw commented Aug 29, 2024

I reckon there's value in a uv provider, as it shifts the burden of security/recency out of Pants. In particular, Pants won't need to have a record of the sizes and hashes of each artifact, it's up to uv to manage that and Pants just needs to know how to install uv (already have support for it via downloading tools).

Thanks for the idea @d-m! Are you interested in working on this? Potentially we can get to good-enough by adapting the pyenv provider code.

@cburroughs
Copy link
Contributor

pants.backend.python.providers.experimental.python_build_standalone has landed in main and will be in the next dev release. Feel free to take it for a spin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants