-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
Cannot use pex with statically linked python #2017
Comments
Two pips is getting big, I'm partial to Pex 3.x vendoring a single newer Pip. That said, you're about to run into more problems anyhow using Python Build Standalone - those won't be able to build native wheels from sdists - sysconfig has many key bad paths embedded from the PBS build process. |
I forgot to say, this is not an urgent/important thing. Just reporting it to share the news. I agree that PBS is not great for building wheels and fixing this is sure to reveal more issues. Maybe it would be good just to tag this with a 'pex3' tag, and the issue can be revisited whenever pex3 is nearing release. |
@zmanji - I'm re-reading this issue on a quest to re-look at all outstanding issues you've filed. They tend to be good ones.
AFAICT that linked issue is a red-herring since the fix was in in the Pip 19 series (and Pex only uses 20.3.4 vendored and newer). FWICT that fix tries to I just tried with https://github.com/indygreg/python-build-standalone/releases/download/20240713/cpython-3.10.14+20240713-x86_64-unknown-linux-musl-install_only.tar.gz and get the same backtrace:
The real fix only landed a few weeks ago afaict and is unreleased (will be released in 24.2 - probaly next weekend): pypa/pip#12716 |
Ok, That picked cleanly, although I had to remove a Python3.5+-style type annotation so this still works with Python 2.7: pex-tool/pip#13 |
Ok, that does the trick for the OP. You can have your fortune read by Pex using Pip 20.3.4+patched on musl libc. |
Alright - the fix for this is released in 2.12.0:
|
due to pypa/pip#6543 it's not possible for pex to resolve dependencies with a statically linked python.
To reproduce in a clean chroot.
Changing the pip version does not work because the vendored pip is used to fetch the newer pip. I see two possible solutions:
The text was updated successfully, but these errors were encountered: