You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the par shebang uses python whereas pex uses something like python2.7
the par zip has 0 compression which makes the file human readable/search
the pex has a .bootstrap/ (including bytecode cache) and PEX-INFO
I don't know how much is configurable between the two, or how different situations are handled (such as C extensions). It looks like pex isn't very portable, but handles dependencies at least a bit differently.
Does anyone know the two well enough to be able to give a fairly detailed comparison on the practical differences?
It would be excellent if you closed either pex-tool/pex#636 or this issue to keep a single stream of conversation going. That said - there is more detail here. I can say the shebang in pex is configurable. Installing pex and executing pex --help will be instructive as will it's docs ; a good entrypoint for those is at https://github.com/pantsbuild/pex/blob/master/README.rst.
There are differences between pex, and the pexes pants creates. Pants does not expose every option pex supports today - and it may make sense to expose more (Pants feature requests are appropriate here), or it may be a Pants bug when certain options aren't used or used properly (your interpreter constraints or python target cmpatibilities allow for python3 but the generated pex shebang is python2).
The PEX Design page doesn't list subpar as an alternative, although it seems to be.
At a glance (using a sample pex from heron) both produce python zip files:
python
whereas pex uses something likepython2.7
.bootstrap/
(including bytecode cache) andPEX-INFO
I don't know how much is configurable between the two, or how different situations are handled (such as C extensions). It looks like pex isn't very portable, but handles dependencies at least a bit differently.
Does anyone know the two well enough to be able to give a fairly detailed comparison on the practical differences?
trees of examples
The text was updated successfully, but these errors were encountered: