-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Please test/review Python for issue 22490 #52046
Comments
Hi. We may need a little bit of time to test this. The initial issue was reported in 2014 and there is a lot of discussion in that ticket. @tdsmith may give us some help if he is still around :) |
Can you make a test script that would prove this is resolved? |
I suspect that this is the reproduction as originally stated in pypa/pip#2031 # incorrect
% /usr/local/opt/python/bin/python3 -c "import os; print(os.environ['__PYVENV_LAUNCHER__'])"
/usr/local/Cellar/python/3.7.7/bin/python3
# correct
% /usr/bin/python -c "import os; print(os.environ['__PYVENV_LAUNCHER__'])"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 40, in __getitem__
raise KeyError(key)
KeyError: '__PYVENV_LAUNCHER__' And it seems the relevant patches are here: master: python/cpython#9516 |
The lingering manifestation of this in Homebrew was the case here: https://bugs.python.org/issue22490#msg283859
We could identify that this is fixed if running the second case gave e.g. I don't think there's anything Homebrew-specific about this anymore; there was an issue with script shebangs but pip 6 (which is quite old now) fixed that for us. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@tdsmith brought some insights and I understand, this looks good now, or at least pip 6 already fixed this for us back then. So the fix does not change anything for us I guess. Thanks for merging the patch though! |
In bpo-22490, a bugfix is now in place for an issue where PYVENV_LAUNCHER would leak to the interpreter and child processes. The fix was applied today to the master, 3.8, and 3.7 branches.
One action item that remained was to test the change against homebrew. Please consider testing one of these branches against homebrew as time permits. Thanks.
The text was updated successfully, but these errors were encountered: