Skip to content

Commit e63cc2f

Browse files
bpo-38488: Upgrade bundled versions of pip & setuptools (GH-20491) (GH-20900)
Co-authored-by: Xavier Fernandez <[email protected]>
1 parent a1d3be4 commit e63cc2f

File tree

6 files changed

+8
-7
lines changed

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
@@ -9,13 +9,13 @@
99
__all__ = ["version", "bootstrap"]
1010

1111

12-
_SETUPTOOLS_VERSION = "41.2.0"
12+
_SETUPTOOLS_VERSION = "47.1.0"
1313

14-
_PIP_VERSION = "19.2.3"
14+
_PIP_VERSION = "20.1.1"
1515

1616
_PROJECTS = [
17-
("setuptools", _SETUPTOOLS_VERSION),
18-
("pip", _PIP_VERSION),
17+
("setuptools", _SETUPTOOLS_VERSION, "py3"),
18+
("pip", _PIP_VERSION, "py2.py3"),
1919
]
2020

2121

@@ -104,8 +104,8 @@ def _bootstrap(*, root=None, upgrade=False, user=False,
104104
# Put our bundled wheels into a temporary directory and construct the
105105
# additional paths that need added to sys.path
106106
additional_paths = []
107-
for project, version in _PROJECTS:
108-
wheel_name = "{}-{}-py2.py3-none-any.whl".format(project, version)
107+
for project, version, py_tag in _PROJECTS:
108+
wheel_name = "{}-{}-{}-none-any.whl".format(project, version, py_tag)
109109
whl = pkgutil.get_data(
110110
"ensurepip",
111111
"_bundled/{}".format(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
@@ -480,7 +480,7 @@ def do_test_with_pip(self, system_site_packages):
480480
# executing pip with sudo, you may want sudo's -H flag."
481481
# where $HOME is replaced by the HOME environment variable.
482482
err = re.sub("^(WARNING: )?The directory .* or its parent directory "
483-
"is not owned by the current user .*$", "",
483+
"is not owned or is not writable by the current user.*$", "",
484484
err, flags=re.MULTILINE)
485485
self.assertEqual(err.rstrip(), "")
486486
# 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)