-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
How does pex resolve defaut --pip-version
#2483
Comments
Pex is hermetic. It actively ignores the surrounding venv contents if run from a venv very much on purpose. This is perhaps more obvious if you don't run it from a venv but instead run the Pex PEX binary When you say If you haven't seen this, here's the list of supported versions as of Pex 2.13.0:
|
So, to be more clear perhaps - unlike most Python tools, you can install Pex globally on your machine once. You can specify |
And as to why the Footnotes |
@jsirois thanks a lot for the quick reply! I wanted to confirm that it's not me doing something wrong, it's actually a common approach to "customize" pex with those options if I understood you correctly here:
I actually was only installing it through pip, but it seems that if I build an isolate env, e.g. docker, I could download (can I?) and put a binary there instead of trying to put it into the global python site, which might be problematic (ubuntu doesn't like it)
are there maybe some public design docs there offer a glipse into the pex machinery? |
Yes. There are a ton of features hidden behind the 3 console scripts Pex ships with (
Nope. Just the code and tinkering. A PEX is a zip, so |
Yes, you could install it in a myriad ways:
|
@maxkoretskyi please let me know if you have any further questions. If not, I'd like to close this as an answered question. |
@jsirois yes, absolutely, thanks a for your elaborate answers! |
@jsirois need your help, if I install pex as binary like this
the following simply code
The error is:
which is weird, because
and if I run |
@maxkoretskyi your problem has nothing to do with Pex here, it has to do with your use of the |
@jsirois silly me! appreciate your insights, all is good now 🙋🏻 as a side note, do you by any chance do occasional consulting related to python? If not, maybe you know somebody good who does? |
@maxkoretskyi I do, but I'd need to know more details. You could DM me at https://pex-tool.org/discord or email john.sirois@gmail.com. I also can provide recommendations if the work is not a good fit. |
Thanks! I'll send an email |
I have
pex==2.13.0
, when I run this with double dependency pex fails:Pip doesn't fail, so when I specify
--pip-version latest
pex works all good:If I do
pip --version
I get24
:so why doesn't pex it pick this version of
pip
by default?The text was updated successfully, but these errors were encountered: