This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients jaraco
Date 2018-08-11.17:39:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534009158.41.0.56676864532.issue31874@psf.upfronthosting.co.za>
In-reply-to
Content
In [setuptools 1453](https://github.com/pypa/setuptools/issues/1453), this issue hit the project hard. Tox 3.2 changed the default invocation of pip from the script-based invocation to the runpy based implementation (python -m pip), which causes pip to be unable to uninstall the setuptools in the environment.

This use case also reveals that the heuristic of "retain '' in sys.path if the module being executed is in a subdirectory of a current directory" wouldn't address the issue, as `.tox/python/lib/python3.7/site-packages/pip/__main__.py` is in a subdirectory of the current directory, but one would still expect '' not to be in sys.path in this case.

But basing on __main__.__spec__, that would probably do what is expected.
History
Date User Action Args
2018-08-11 17:39:18jaracosetrecipients: + jaraco
2018-08-11 17:39:18jaracosetmessageid: <1534009158.41.0.56676864532.issue31874@psf.upfronthosting.co.za>
2018-08-11 17:39:18jaracolinkissue31874 messages
2018-08-11 17:39:18jaracocreate