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 ncoghlan
Recipients dstufft, ncoghlan, paul.moore, r.david.murray
Date 2013-12-23.16:35:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387816501.44.0.913774877049.issue20053@psf.upfronthosting.co.za>
In-reply-to
Content
Oh, I forgot about os.devnull.

ensurepip.bootstrap mutates the environment of the current process (hence the recommendation to use the CLI instead), so yes, doing "os.environ['PIP_CONFIG_FILE'] = os.devnull" before importing pip should do the trick.

And then generate a "no-install=true" config with HOME in test_venv to make sure it is properly ignored.
History
Date User Action Args
2013-12-23 16:35:01ncoghlansetrecipients: + ncoghlan, paul.moore, r.david.murray, dstufft
2013-12-23 16:35:01ncoghlansetmessageid: <1387816501.44.0.913774877049.issue20053@psf.upfronthosting.co.za>
2013-12-23 16:35:01ncoghlanlinkissue20053 messages
2013-12-23 16:35:01ncoghlancreate