Skip to content

Detect and install tool python version #8229

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

Open
Tobi-De opened this issue Oct 15, 2024 · 4 comments
Open

Detect and install tool python version #8229

Tobi-De opened this issue Oct 15, 2024 · 4 comments

Comments

@Tobi-De
Copy link

Tobi-De commented Oct 15, 2024

This isn’t an issue, but since there’s no discussions tab, I’ll post it here.

Is it possible to install a tool with the appropriate python version it needs without knowing it in advance? (in an automated fashion)

Here’s my scenario: I have a package for which I build a wheel file. I then move the wheel file to another server that has uv installed. Let's say my package specifies python >= 3.13, and the server has Python 3.12 installed. If I run uv tool install <path_to_wheel>, it doesn’t work because Python 3.13 isn’t installed on that server, which makes sense.

Is there a way to automatically detect the Python version of the tool (maybe that can be extracted from the wheel somehow) and install the appropriate version? I want to automate this process, so I’m wondering if there’s a trick or method that can make this work.

@my1e5
Copy link
Contributor

my1e5 commented Oct 15, 2024

Possibly related to my issue #8206 ?

You want uv to automatically detect that 3.13 is the suitable python version to use. I want uv to detect that 3.12 is the suitable python version to use.

@Tobi-De
Copy link
Author

Tobi-De commented Oct 15, 2024

Possibly related to my issue #8206 ?

You want uv to automatically detect that 3.13 is the suitable python version to use. I want uv to detect that 3.12 is the suitable python version to use.

Yep similar issue, in my case I want to use uv as part of an automated deployment workflow for any random packaged application, manually specifying the python version is not really an option

@zanieb
Copy link
Member

zanieb commented Oct 16, 2024

Does #7827 address this?

@Tobi-De
Copy link
Author

Tobi-De commented Oct 16, 2024

Does #7827 address this?

Yep, I think it does

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

No branches or pull requests

3 participants