MCPcopy Create free account
hub / github.com/python/cpython / _get_pip_whl_path_ctx

Function _get_pip_whl_path_ctx

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

Source from the content-addressed store, hash-verified

40
41
42def _get_pip_whl_path_ctx():
43 # Prefer pip from the wheel package directory, if present.
44 if (alternative_pip_wheel_path := _find_wheel_pkg_dir_pip()) is not None:
45 return alternative_pip_wheel_path
46
47 return resources.as_file(
48 resources.files('ensurepip')
49 / '_bundled'
50 / f'pip-{_PIP_VERSION}-py3-none-any.whl'
51 )
52
53
54def _get_pip_version():

Callers 2

_get_pip_versionFunction · 0.85
_bootstrapFunction · 0.85

Calls 2

_find_wheel_pkg_dir_pipFunction · 0.85
filesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…