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
gh-90355: Add isolated flag if currently isolated #92857
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Éric <merwok@netwok.org>
To help automation bots, could you please rename the issue to |
I noticed the CLA bot is actually complaining about my work email, which I guess was set in one of the commits, instead of setting to the email I have set for github. |
You can add the work email to your Github account, it doesn't need to be public. Just enough so that Github (and thus the bot) will know it's yours. |
And if you have a separate Github user for that work email, log into that work account and click the CLA bot button to sign from that account. |
Alright, CLA situation looks good now! |
https://bugs.python.org/issue46197
Potential resolution of the issue introduced around Python 3.8.7 where
ensurepip
module would run the bootstrapped pip in a subprocess and no longer obeyed theisolated
flag set when run by thevenv
module. This could cause pip to not install itself in the virtual environment if it found an installation in another path.Approach taken is simple, to access the
isolated
flag of the current process, and, if it set, also add it to the sub-process. If the current process was not run asisolated
the sub-process will not, restoring this particular case seen in Python <= 3.8.6.This behavior was manually verified to work in the case that PYTHONPATH contains another installation of pip.
The test was attempted, but the
test_venv
test appears to fail for another un-related issue persisting from the last commit of the forked branch3.10
(without the requested change). For clarity that the test does not indicate a problem with this request inspected traces of the failure is included below:https://bugs.python.org/issue46197
#90355
#30307