mirror of https://github.com/python/cpython
bpo-45343: Update bundled pip to 21.2.4 and setuptools to 58.1.0 (GH-28684)
This commit is contained in:
parent
48fadb1f19
commit
4c8d543823
|
@ -10,8 +10,8 @@ from importlib import resources
|
||||||
|
|
||||||
__all__ = ["version", "bootstrap"]
|
__all__ = ["version", "bootstrap"]
|
||||||
_PACKAGE_NAMES = ('setuptools', 'pip')
|
_PACKAGE_NAMES = ('setuptools', 'pip')
|
||||||
_SETUPTOOLS_VERSION = "57.4.0"
|
_SETUPTOOLS_VERSION = "58.1.0"
|
||||||
_PIP_VERSION = "21.2.3"
|
_PIP_VERSION = "21.2.4"
|
||||||
_PROJECTS = [
|
_PROJECTS = [
|
||||||
("setuptools", _SETUPTOOLS_VERSION, "py3"),
|
("setuptools", _SETUPTOOLS_VERSION, "py3"),
|
||||||
("pip", _PIP_VERSION, "py3"),
|
("pip", _PIP_VERSION, "py3"),
|
||||||
|
@ -41,7 +41,7 @@ def _find_packages(path):
|
||||||
# comparison since this case should not happen.
|
# comparison since this case should not happen.
|
||||||
filenames = sorted(filenames)
|
filenames = sorted(filenames)
|
||||||
for filename in 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"):
|
if not filename.endswith(".whl"):
|
||||||
continue
|
continue
|
||||||
for name in _PACKAGE_NAMES:
|
for name in _PACKAGE_NAMES:
|
||||||
|
@ -51,7 +51,7 @@ def _find_packages(path):
|
||||||
else:
|
else:
|
||||||
continue
|
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]
|
version = filename.removeprefix(prefix).partition('-')[0]
|
||||||
wheel_path = os.path.join(path, filename)
|
wheel_path = os.path.join(path, filename)
|
||||||
packages[name] = _Package(version, None, wheel_path)
|
packages[name] = _Package(version, None, wheel_path)
|
||||||
|
|
Binary file not shown.
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…
Reference in New Issue