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

Function bootstrap

Lib/ensurepip/__init__.py:110–122  ·  view source on GitHub ↗

Bootstrap pip into the current Python installation (or the given root directory). Note that calling this function will alter both sys.path and os.environ.

(*, root=None, upgrade=False, user=False,
              altinstall=False, default_pip=False,
              verbosity=0)

Source from the content-addressed store, hash-verified

108
109
110def bootstrap(*, root=None, upgrade=False, user=False,
111 altinstall=False, default_pip=False,
112 verbosity=0):
113 """
114 Bootstrap pip into the current Python installation (or the given root
115 directory).
116
117 Note that calling this function will alter both sys.path and os.environ.
118 """
119 # Discard the return value
120 _bootstrap(root=root, upgrade=upgrade, user=user,
121 altinstall=altinstall, default_pip=default_pip,
122 verbosity=verbosity)
123
124
125def _bootstrap(*, root=None, upgrade=False, user=False,

Callers

nothing calls this directly

Calls 1

_bootstrapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…