When creating a venv external to the PEX_ROOT via either
pex3 venv create ... or PEX_TOOLS=1 ./my.pex venv ... you can now
specify --site-packages-copies to ensure all code populated in the
venv is isolated from the PEX_ROOT cache. Although this takes more
space on disk, it may make sense to use when you expect the venv might
be tampered with or used for experimentation that might alter its files;
otherwise contaminating the PEX_ROOT cache.
When creating a venv external to the
PEX_ROOT
via eitherpex3 venv create ...
orPEX_TOOLS=1 ./my.pex venv ...
you can now specify--site-packages-copies
to ensure all code populated in the venv is isolated from thePEX_ROOT
cache. Although this takes more space on disk, it may make sense to use when you expect the venv might be tampered with or used for experimentation that might alter its files; otherwise contaminating thePEX_ROOT
cache.Fixes #2313