-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support PEP 405 include-system-site-packages configuration #7155
Merged
pradyunsg
merged 8 commits into
pypa:master
from
pradyunsg:support-pep-405-site-packages
Nov 6, 2019
Merged
Support PEP 405 include-system-site-packages configuration #7155
pradyunsg
merged 8 commits into
pypa:master
from
pradyunsg:support-pep-405-site-packages
Nov 6, 2019
Commits on Nov 5, 2019
-
Factor out running_under_virtualenv conditionals
Why: This would allow for use in an updated `virtualenv_no_global` that supports PEP 405 virtual environments.
Configuration menu - View commit details
-
Copy full SHA for 1b9c9e2 - Browse repository at this point
Copy the full SHA 1b9c9e2View commit details -
Why: This change makes it easier to introduce handling for PEP 405 based virtual environment's global site-package exclusion logic
Configuration menu - View commit details
-
Copy full SHA for fd7c9b7 - Browse repository at this point
Copy the full SHA fd7c9b7View commit details -
Correctly ignore system site-packages for venv
Why: PEP 405 virtual environments have a different mechanism for ignoring system site-packages in virtual environments.
Configuration menu - View commit details
-
Copy full SHA for 1aee0eb - Browse repository at this point
Copy the full SHA 1aee0ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 762ffd5 - Browse repository at this point
Copy the full SHA 762ffd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe9ae3b - Browse repository at this point
Copy the full SHA fe9ae3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5332ec5 - Browse repository at this point
Copy the full SHA 5332ec5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 57d34e0 - Browse repository at this point
Copy the full SHA 57d34e0View commit details -
Skip all failing tests when using venv
Our isolation logic for venv isn't correct and that is causing these tests to fail. The culprits for this are: tests/lib/venv.py::VirtualEnvironment.user_site_packages tests/lib/venv.py::VirtualEnvironment.sitecustomize Both these together are supposed to create an environment to isolate the tests. However, they were written for virtualenv and make assumptions that are not true for environments created with venv. Until we can fix VirtualEnvironment to properly isolate the test from the underlying test environment when using venv, these tests will continue to fail. This is blocking an important bugfix for users facing issues with since pip is installing packages into `--user` when run in a venv, even when `--user` isn't visible from that environment. As a temporary band-aid for this problem, I'm skipping these tests to unblock us from shipping the bugfix for the aforementioned issue. The test isolation logic should be fixed to work for venv. Once such a fix is made, this commit should be reverted.
Configuration menu - View commit details
-
Copy full SHA for 8981895 - Browse repository at this point
Copy the full SHA 8981895View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.