pex 2.1.135
2.1.135
This release brings support for pex3 venv {inspect,create}
for
working with venvs directly using Pex. Previously, a PEX built with
--include-tools
(or --venv
) had the capability of turning itself
into a venv but the new pex3 venv create
command can do this for any
PEX file with the addition of a few new features:
- The venv can now be created directly from requirements producing no
intermediate PEX file. - The venv can be created either from a PEX file or a lock file. A
subset of either of those can be chosen by also supplying
requirements. - Instead of creating a full-fledged venv, just the site-packages can
be exported (without creating an intermediate venv). This "flat"
layout is used by several prominent runtimes - notably AWS Lambda -
and emulatespip install --target
. This style layout can also be
zipped and prefixed. Additionally it supports--platform
and
--complete-platform
allowing creation of, for example, an AWS
Lambda (or Lambda Layer) deployment zip on a non-Linux host.
Additionally this release adds support for Pip 23.1.1 and 23.1.2.