MCPcopy Create free account
hub / github.com/RustPython/RustPython / _disable_pip_configuration_settings

Function _disable_pip_configuration_settings

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

Source from the content-addressed store, hash-verified

95
96
97def _disable_pip_configuration_settings():
98 # We deliberately ignore all pip environment variables
99 # when invoking pip
100 # See http://bugs.python.org/issue19734 for details
101 keys_to_remove = [k for k in os.environ if k.startswith("PIP_")]
102 for k in keys_to_remove:
103 del os.environ[k]
104 # We also ignore the settings in the default pip configuration file
105 # See http://bugs.python.org/issue20053 for details
106 os.environ['PIP_CONFIG_FILE'] = os.devnull
107
108
109def 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