MCPcopy Index your code
hub / github.com/python/cpython / _disable_pip_configuration_settings

Function _disable_pip_configuration_settings

Lib/ensurepip/__init__.py:98–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def _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
110def bootstrap(*, root=None, upgrade=False, user=False,

Callers 2

_bootstrapFunction · 0.85
_uninstall_helperFunction · 0.85

Calls 1

startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…