MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_pip_whl_path_ctx

Function _get_pip_whl_path_ctx

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

Source from the content-addressed store, hash-verified

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