()
| 96 | |
| 97 | |
| 98 | def _disable_pip_configuration_settings(): |
| 99 | # We deliberately ignore all pip environment variables |
| 100 | # when invoking pip |
| 101 | # See http://bugs.python.org/issue19734 for details |
| 102 | keys_to_remove = [k for k in os.environ if k.startswith("PIP_")] |
| 103 | for k in keys_to_remove: |
| 104 | del os.environ[k] |
| 105 | # We also ignore the settings in the default pip configuration file |
| 106 | # See http://bugs.python.org/issue20053 for details |
| 107 | os.environ['PIP_CONFIG_FILE'] = os.devnull |
| 108 | |
| 109 | |
| 110 | def bootstrap(*, root=None, upgrade=False, user=False, |
no test coverage detected
searching dependent graphs…