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

Support managed downloads of 3.13t (no-gil / freethreaded) #8019

Closed
zanieb opened this issue Oct 8, 2024 · 10 comments
Closed

Support managed downloads of 3.13t (no-gil / freethreaded) #8019

zanieb opened this issue Oct 8, 2024 · 10 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@zanieb
Copy link
Member

zanieb commented Oct 8, 2024

Right now, we only support a single build per CPython version. We need to add support for other build options to allow installing the freethreaded builds. This will require changes to our download metadata fetch and template scripts. We should probably aim support debug builds too.

@Crypto-Spartan
Copy link

Crypto-Spartan commented Oct 8, 2024

In addition, I'd love it if uv were able to support other builds from python-build-standalone, such as x86_64-unknown-linux-gnu-pgo+lto-full.tar.zst, x86_64_v3-unknown-linux-gnu-install_only_stripped.tar.gz, etc.

I know we talked about this in the other issue, just wanted to add the request here specifically.

@charliermarsh
Copy link
Member

Can I ask why you need / want to use those other builds?

@Crypto-Spartan
Copy link

Those other builds provide optimizations done by the compiler that aren't done in the base -install_only_stripped.tar.gz builds. I just chose those 2 as examples, but I believe uv should support any build from python-build-standalone.

@charliermarsh
Copy link
Member

The install-only-stripped builds include PGO and LTO.

@Crypto-Spartan
Copy link

Ah, I didn't realize that. when I checked the docs at https://gregoryszorc.com/docs/python-build-standalone/main/running.html#obtaining-distributions, it didn't seem that way. I found https://gregoryszorc.com/docs/python-build-standalone/main/distributions.html#install-only-archive had it listed, all the way at the bottom of the page.

@Crypto-Spartan
Copy link

What about the newer CPU architectures such as x86_64_v3?

@zanieb
Copy link
Member Author

zanieb commented Oct 8, 2024

What about the newer CPU architectures such as x86_64_v3?

Yes, those also prefer the optimized builds.

@Crypto-Spartan
Copy link

I figured that. I was trying to ask:
Is uv open to supporting installing builds with newer CPU architectures such as x86_64_v3? I didn't see any of those builds listed in https://github.com/astral-sh/uv/blob/f6fd849f2c63e3b319ab03c936beab866dc303ba/crates/uv-python/download-metadata.json

@zanieb
Copy link
Member Author

zanieb commented Oct 8, 2024

We should chat about that in another issue as it's totally unrelated to this thread — but, yes? If we can detect the architecture reliably.

@zanieb
Copy link
Member Author

zanieb commented Oct 9, 2024

I actually had already opened an issue to track this at #7193

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants