Skip to content

Commit bc996c6

Browse files
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491)
(cherry picked from commit 5f79f46) Co-authored-by: Xavier Fernandez <[email protected]>
1 parent b498c7f commit bc996c6

6 files changed

+8
-7
lines changed

Lib/ensurepip/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
__all__ = ["version", "bootstrap"]
1313

1414

15-
_SETUPTOOLS_VERSION = "41.2.0"
15+
_SETUPTOOLS_VERSION = "47.1.0"
1616

17-
_PIP_VERSION = "19.2.3"
17+
_PIP_VERSION = "20.1.1"
1818

1919
_PROJECTS = [
20-
("setuptools", _SETUPTOOLS_VERSION),
21-
("pip", _PIP_VERSION),
20+
("setuptools", _SETUPTOOLS_VERSION, "py3"),
21+
("pip", _PIP_VERSION, "py2.py3"),
2222
]
2323

2424

@@ -107,8 +107,8 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
107107
# Put our bundled wheels into a temporary directory and construct the
108108
# additional paths that need added to sys.path
109109
additional_paths = []
110-
for project, version in _PROJECTS:
111-
wheel_name = "{}-{}-py2.py3-none-any.whl".format(project, version)
110+
for project, version, py_tag in _PROJECTS:
111+
wheel_name = "{}-{}-{}-none-any.whl".format(project, version, py_tag)
112112
whl = resources.read_binary(
113113
_bundled,
114114
wheel_name,
Binary file not shown.
Binary file not shown.

Lib/test/test_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def do_test_with_pip(self, system_site_packages):
513513
# executing pip with sudo, you may want sudo's -H flag."
514514
# where $HOME is replaced by the HOME environment variable.
515515
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
516-
"is not owned by the current user .*$", "",
516+
"is not owned or is not writable by the current user.*$", "",
517517
err, flags=re.MULTILINE)
518518
self.assertEqual(err.rstrip(), "")
519519
# Being fairly specific regarding the expected behaviour for the
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update ensurepip to install pip 20.1.1 and setuptools 47.1.0.

0 commit comments

Comments
 (0)