Skip to content
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

Escape venvs unless PEX_INHERIT_PATH is requested. #1130

Merged
merged 1 commit into from
Dec 11, 2020

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Dec 11, 2020

Virtual environments created with --system-site-packages can break PEX
sys.path scrubbing. Avoid this class of environment leaks by breaking out
of venvs unless PEX_INHERIT_PATH has been requested.

A test is added that fails for virtualenv-16.7.10 without the fix.

Fixes #1031

@jsirois
Copy link
Member Author

jsirois commented Dec 11, 2020

N.B.: This is based on #1129 which is the 1st commit here (a316163). Please review the second commit (39e6a67) and I'll rebase once #1129 is in.

Virtual environments created with --system-site-packages can break PEX
sys.path scrubbing. Avoid this class of environment leaks by breaking out
of venvs unless PEX_INHERIT_PATH has been requested.

A test is added that fails for virtualenv-16.7.10 that fails without the
fix.

Fixes pex-tool#1031
@jsirois jsirois merged commit 999f903 into pex-tool:master Dec 11, 2020
@jsirois jsirois deleted the issues/1031 branch December 11, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pex vendoring does not (always) isolate itself from a colliding setuptools install in site-packages
2 participants