-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use optimized versions of managed Python on Linux #4775
Conversation
uv python
command with optimized oneuv python
command with optimized one
:D of course I see this after I've debugged it and found this is the problem. Glad we agree though! Thanks for opening a pull request. |
uv python
command with optimized one"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-aarch64-unknown-linux-gnu-debug-full.tar.zst", | ||
"sha256": "24daaf20123ac4b2b8657c1ac8227d391d2e5769d81237b68ee674569d307ad0" | ||
"url": "https://github.com/indygreg/python-build-standalone/releases/download/20240415/cpython-3.12.3%2B20240415-aarch64-unknown-linux-gnu-lto-full.tar.zst", | ||
"sha256": "a4f17d1e3b4ea0e4c2a3664f232c0857979522936af582f7de92b57050220f74" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The archive for lto
is more than 3 times the size of debug
.
Looking at the docs, there's an Install Only Archive. Does uv need the full variant?
cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-debug-full.tar.zst 48MB
cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-lto-full.tar.zst 178MB
cpython-3.12.3+20240415-aarch64-unknown-linux-gnu-install_only.tar.gz 24.4MB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why Rye opted not to use these (and our download preferences are based on the implementation over there). Here's an issue for discussion #4834
Fix #4774.
Summary
Change the python interpreter for linux installed with
uv python
to an optimized one.Test Plan
I ran the following command on Linux (glibc) to confirm that an optimized (not debug built) Python is installed.