[issue20053] venv and ensurepip are affected by default pip config file

Nick Coghlan report at bugs.python.org
Mon Dec 23 17:35:01 CET 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue20053>
_______________________________________


More information about the Python-bugs-list mailing list