Lines Matching full:pip
31 dist_matching_wheels = _WHEEL_PKG_DIR.glob('pip-*.whl')
35 # NOTE: `WHEEL_PKG_DIR` does not contain any wheel files for `pip`.
42 # Prefer pip from the wheel package directory, if present.
49 / f'pip-{_PIP_VERSION}-py3-none-any.whl'
57 # Extract '21.2.4' from 'pip-21.2.4-py3-none-any.whl'
59 removeprefix('pip-').
66 # after pip has executed. Particularly, this avoids the case when pip holds onto
74 runpy.run_module("pip", run_name="__main__", alter_sys=True)
92 Returns a string specifying the bundled version of pip.
98 # We deliberately ignore all pip environment variables
99 # when invoking pip
104 # We also ignore the settings in the default pip configuration file
113 Bootstrap pip into the current Python installation (or the given root
128 Bootstrap pip into the current Python installation (or the given root
129 directory). Returns pip command status code.
140 # By default, installing pip installs all of the
143 # pip, pipX, pipX.Y
145 # pip 1.5+ allows ensurepip to request that some of those be left out
147 # omit pip, pipX
150 # omit pip
161 # Construct the arguments to be passed to the pip command
172 return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
180 # Nothing to do if pip was never installed, or has been removed
182 import pip
186 # If the installed pip version doesn't match the available one,
189 if pip.__version__ != available_version:
191 f"({pip.__version__!r} installed, "
198 # Construct the arguments to be passed to the pip command
199 args = ["uninstall", "-y", "--disable-pip-version-check"]
203 return _run_pip([*args, "pip"])
212 version="pip {}".format(version()),
213 help="Show the version of pip that is bundled with this Python.",
227 help="Upgrade pip and dependencies, even if already installed.",
248 "--default-pip",
251 help=("Make a default pip install, installing the unqualified pip "