mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684) (GH-28746)
(cherry picked from commit 4c8d543823
)
Co-authored-by: Illia Volochii <illia.volochii@gmail.com>
This commit is contained in:
parent
258c5fbbfd
commit
325e4647af
5 changed files with 5 additions and 4 deletions
|
@ -11,8 +11,8 @@ from importlib import resources
|
|||
|
||||
__all__ = ["version", "bootstrap"]
|
||||
_PACKAGE_NAMES = ('setuptools', 'pip')
|
||||
_SETUPTOOLS_VERSION = "57.4.0"
|
||||
_PIP_VERSION = "21.2.3"
|
||||
_SETUPTOOLS_VERSION = "58.1.0"
|
||||
_PIP_VERSION = "21.2.4"
|
||||
_PROJECTS = [
|
||||
("setuptools", _SETUPTOOLS_VERSION, "py3"),
|
||||
("pip", _PIP_VERSION, "py3"),
|
||||
|
@ -42,7 +42,7 @@ def _find_packages(path):
|
|||
# comparison since this case should not happen.
|
||||
filenames = sorted(filenames)
|
||||
for filename in filenames:
|
||||
# filename is like 'pip-20.2.3-py2.py3-none-any.whl'
|
||||
# filename is like 'pip-21.2.4-py3-none-any.whl'
|
||||
if not filename.endswith(".whl"):
|
||||
continue
|
||||
for name in _PACKAGE_NAMES:
|
||||
|
@ -52,7 +52,7 @@ def _find_packages(path):
|
|||
else:
|
||||
continue
|
||||
|
||||
# Extract '20.2.2' from 'pip-20.2.2-py2.py3-none-any.whl'
|
||||
# Extract '21.2.4' from 'pip-21.2.4-py3-none-any.whl'
|
||||
version = filename.removeprefix(prefix).partition('-')[0]
|
||||
wheel_path = os.path.join(path, filename)
|
||||
packages[name] = _Package(version, None, wheel_path)
|
||||
|
|
Binary file not shown.
BIN
Lib/ensurepip/_bundled/pip-21.2.4-py3-none-any.whl
Normal file
BIN
Lib/ensurepip/_bundled/pip-21.2.4-py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
Update bundled pip to 21.2.4 and setuptools to 58.1.0
|
Loading…
Add table
Add a link
Reference in a new issue