()
| 39 | |
| 40 | |
| 41 | def _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 | |
| 53 | def _get_pip_version(): |
no test coverage detected