]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38662: ensurepip invokes pip via runpy (GH-18901)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Mar 2020 21:34:51 +0000 (14:34 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 21:34:51 +0000 (14:34 -0700)
commit8d5c958ddebbb96c2de5d58da4c7aa1790629cf9
tree336c861848d5927c42e5aa242caf06eee819b3a8
parentf0fcf16902f440c2cddd6dec59aaf59a370d9dbf
bpo-38662: ensurepip invokes pip via runpy (GH-18901)

The ensurepip module now invokes pip via the runpy module.
Hence it is no longer tightly coupled with the internal API of the bundled
pip version, allowing easier updates to a newer pip version both
internally and for distributors.

This way, any changes to the internal pip API won't mean ensurepip needs to be
changed as well. Also, distributors can update their pip wheels independent on
CPython release schedule.

Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
(cherry picked from commit 88f82b2b9ea3514359cb6e3218121f75334063ac)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
Lib/ensurepip/__init__.py
Misc/NEWS.d/next/Library/2020-03-10-15-32-31.bpo-38662.o1DMXj.rst [new file with mode: 0644]