[issue22827] Backport ensurepip to 2.7 (PEP 477)

Donald Stufft report at bugs.python.org
Sun Nov 9 17:59:13 CET 2014


New submission from Donald Stufft:

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.

Note: The attached patch does not contain the actual .whl files which are required. This is because it makes the patch into a 2M patch and the tracker didn't like that very much. This patch can be applied and then just copy over the Lib/ensurepip/_bundled directory from Python 3.4.

----------
files: pep-477.patch
keywords: needs review, patch
messages: 230889
nosy: doko, dstufft, ncoghlan, ned.deily
priority: normal
severity: normal
stage: patch review
status: open
title: Backport ensurepip to 2.7 (PEP 477)
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file37154/pep-477.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22827>
_______________________________________


More information about the Python-bugs-list mailing list