MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / bootstrap

Function bootstrap

tools/python-3.11.9-amd64/Lib/ensurepip/__init__.py:125–137  ·  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

123
124
125def bootstrap(*, root=None, upgrade=False, user=False,
126 altinstall=False, default_pip=False,
127 verbosity=0):
128 """
129 Bootstrap pip into the current Python installation (or the given root
130 directory).
131
132 Note that calling this function will alter both sys.path and os.environ.
133 """
134 # Discard the return value
135 _bootstrap(root=root, upgrade=upgrade, user=user,
136 altinstall=altinstall, default_pip=default_pip,
137 verbosity=verbosity)
138
139
140def _bootstrap(*, root=None, upgrade=False, user=False,

Callers

nothing calls this directly

Calls 1

_bootstrapFunction · 0.85

Tested by

no test coverage detected