mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)
(cherry picked from commit 5f79f46612
)
Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
This commit is contained in:
parent
b498c7f1b3
commit
bc996c67b7
6 changed files with 8 additions and 7 deletions
|
@ -12,13 +12,13 @@ from . import _bundled
|
||||||
__all__ = ["version", "bootstrap"]
|
__all__ = ["version", "bootstrap"]
|
||||||
|
|
||||||
|
|
||||||
_SETUPTOOLS_VERSION = "41.2.0"
|
_SETUPTOOLS_VERSION = "47.1.0"
|
||||||
|
|
||||||
_PIP_VERSION = "19.2.3"
|
_PIP_VERSION = "20.1.1"
|
||||||
|
|
||||||
_PROJECTS = [
|
_PROJECTS = [
|
||||||
("setuptools", _SETUPTOOLS_VERSION),
|
("setuptools", _SETUPTOOLS_VERSION, "py3"),
|
||||||
("pip", _PIP_VERSION),
|
("pip", _PIP_VERSION, "py2.py3"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -107,8 +107,8 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
|
||||||
# Put our bundled wheels into a temporary directory and construct the
|
# Put our bundled wheels into a temporary directory and construct the
|
||||||
# additional paths that need added to sys.path
|
# additional paths that need added to sys.path
|
||||||
additional_paths = []
|
additional_paths = []
|
||||||
for project, version in _PROJECTS:
|
for project, version, py_tag in _PROJECTS:
|
||||||
wheel_name = "{}-{}-py2.py3-none-any.whl".format(project, version)
|
wheel_name = "{}-{}-{}-none-any.whl".format(project, version, py_tag)
|
||||||
whl = resources.read_binary(
|
whl = resources.read_binary(
|
||||||
_bundled,
|
_bundled,
|
||||||
wheel_name,
|
wheel_name,
|
||||||
|
|
Binary file not shown.
BIN
Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl
Normal file
BIN
Lib/ensurepip/_bundled/pip-20.1.1-py2.py3-none-any.whl
Normal file
Binary file not shown.
Binary file not shown.
|
@ -513,7 +513,7 @@ class EnsurePipTest(BaseTest):
|
||||||
# executing pip with sudo, you may want sudo's -H flag."
|
# executing pip with sudo, you may want sudo's -H flag."
|
||||||
# where $HOME is replaced by the HOME environment variable.
|
# where $HOME is replaced by the HOME environment variable.
|
||||||
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
|
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
|
||||||
"is not owned by the current user .*$", "",
|
"is not owned or is not writable by the current user.*$", "",
|
||||||
err, flags=re.MULTILINE)
|
err, flags=re.MULTILINE)
|
||||||
self.assertEqual(err.rstrip(), "")
|
self.assertEqual(err.rstrip(), "")
|
||||||
# Being fairly specific regarding the expected behaviour for the
|
# Being fairly specific regarding the expected behaviour for the
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Update ensurepip to install pip 20.1.1 and setuptools 47.1.0.
|
Loading…
Add table
Add a link
Reference in a new issue