python-pex refers to the pex tool and the .pex files it creates. PEX is a set of packaging and distributions libraries formerly available though twitter commons and its most notable component is the .pex file format. .pex files are effectively self-contained executable Python virtual environments.
pex is a set of packaging and distributions libraries split out of twitter commons. pex most notable components are .pex (Python EXecutable) format and the pex
tool used to build .pex files.
.pex files allows the distribution of a python program and all its dependencies as a single, self-contained and executable file. Deploying a .pex file can be done with a single scp
, while still keeping all the benefits of a virtualenv.
Under the hood, .pex files are specially crafted zip files with #!/usr/bin/env python
shebang and a special __main__.py
. More details about the inner workings of pex can be found at the docs.