Nick Coghlan added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue20053>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to