-
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
python subprocess invocation to inject setuptools pollutes setuptools argument list #1890
Comments
For more details, see our review and diff here: https://phabric.freebsd.org/D270 |
The diff above is no longer available, however this should be pretty easy to fix. It should just require modifying the shim code so that it munges |
@bertilhatt are you working on this? |
@pradyunsg Please mark as in progress |
@bertilhatt you need to claim this issue on http://gg.gg/PyPASprint2018 |
Sorry @kynan, the link to gg.gg doesn’t seem to work for me. I am not working on it anymore. The pull request is marked as LGTM, so I expect it to go through. |
Odd, the short link appears to have expired. https://hackmd.io/JugBUcU6QdCR8QK9fTBfug |
Happy 5 year birthday for this issue (last month)! Thank you for resolving this @cjerdonek :) FWIW, the review/diff URL mentioned in my earlier comment is now https://reviews.freebsd.org/D270 |
@koobs, per your comment on that thread, would a change to setuptools make for a cleaner fix? Is there a corresponding issue in setuptools' tracker? |
@cjerdonek I think the best way to answer that question is wherever the issue is found/reproducible, which at the time of the report, was distutils, setuptools, pip. I looked through @marcusva's history around the time this issue was created and couldn't see a referenced setuptools bug report |
setuptools (and probably distutils) assume the very first argument from sys.argv to be the executed setup file. Invoking a python subprocess with -c to execute a command will set '-c' to be the very first argument to sys.argv (see the docs). This leads to the manifest_maker warning noted at
pip/pip/req/req_install.py
Line 868 in 9b11ed2
As a workaround, manipulate the argument list prior to exec() in
pip/pip/req/req_install.py
Line 843 in 9b11ed2
The text was updated successfully, but these errors were encountered: