This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Backport ensurepip to 2.7 (PEP 477)
Type: enhancement Stage: patch review
Components: Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: doko, dstufft, ncoghlan, ned.deily
Priority: normal Keywords: needs review, patch

Created on 2014-11-09 17:00 by dstufft, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pep-477.patch dstufft, 2014-11-09 16:54
Messages (2)
msg230890 - (view) Author: Donald Stufft (dstufft) * (Python committer) Date: 2014-11-09 16:54
As specified in PEP 477, this backports PEP 453 (ensurepip) to the Python 2.7 branch. Key differences from PEP 453 are:

* It is not run by default in the Makefile
* There is no venv modules, so downstream can remove it (though are asked to patch it to provide instructions redirecting people to how they should install pip).
* The ``pip`` command is installed as well as ``pipX`` and ``pipX.Y``.
* Given the above, --default-pip is hidden and no-oped and --no-default-pip is added to restore the Python 3.x behavior.

This also includes a (slightly modified to make it work on 2.x) backport of unittest.mock as test._mock_backport in order to make it reasonable to run the ensurepip tests without actually installing pip.

This patch does not include any changes to the Windows installers or to the OS X installers. I've nosey'd Ned Deily for the OS X installer changes, I'm not sure who is doing the Windows Installers now adays.
msg230891 - (view) Author: Donald Stufft (dstufft) * (Python committer) Date: 2014-11-09 17:01
Closing this in favor of http://bugs.python.org/issue22827
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67017
2014-11-09 17:01:30dstufftsetstatus: open -> closed
resolution: duplicate
messages: + msg230891
2014-11-09 17:00:24dstufftcreate