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:
Miss Islington (bot) 2021-10-05 15:15:46 -07:00 committed by GitHub
parent 258c5fbbfd
commit 325e4647af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View file

@ -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.

View file

@ -0,0 +1 @@
Update bundled pip to 21.2.4 and setuptools to 58.1.0