]> granicus.if.org Git - python/commit
Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7
authorDonald Stufft <donald@stufft.io>
Tue, 11 Nov 2014 15:24:11 +0000 (10:24 -0500)
committerDonald Stufft <donald@stufft.io>
Tue, 11 Nov 2014 15:24:11 +0000 (10:24 -0500)
commit8aaff54db30b902702feb99344e60d77ddd6a551
tree7654ff5d04bcc726cac393f72f62cedff2f0a05c
parent04eee639499f3d643e14099b7374bc8a259af015
Implement PEP 477 - Backport ensurepip (PEP 453) to 2.7

* Backports ensurepip to the 2.7 branch
* Backports some of the improved documentation to the 2.7 branch.
* Adds a private backport of the 3.x mock library as test._mock_backport
  to enable saner testing of ensurepip.

Key Differences from 3.x:

* Ensurepip does not have any Makefile integration, specifically
  it is not ran by default in the Makefile.
* There is no venv module in 2.7, so downstream distributors can
  completely disable ensurepip, ideally with a message redirecting
  to the correct way to install pip.
* To match the ``python`` command in 2.7, ensurepip will install
  the unversioned ``pip`` command as well.
* No-op and hide --default-pip and add --no-default-pip to restore
  the 3.x behavor on 2.7.
15 files changed:
.hgeol
Doc/library/distribution.rst [new file with mode: 0644]
Doc/library/ensurepip.rst [new file with mode: 0644]
Doc/library/index.rst
Doc/library/python.rst
Doc/whatsnew/2.7.rst
Lib/ensurepip/__init__.py [new file with mode: 0644]
Lib/ensurepip/__main__.py [new file with mode: 0644]
Lib/ensurepip/_bundled/pip-1.5.6-py2.py3-none-any.whl [new file with mode: 0644]
Lib/ensurepip/_bundled/setuptools-3.6-py2.py3-none-any.whl [new file with mode: 0644]
Lib/ensurepip/_uninstall.py [new file with mode: 0644]
Lib/test/_mock_backport.py [new file with mode: 0644]
Lib/test/test_ensurepip.py [new file with mode: 0644]
Makefile.pre.in
Tools/scripts/checkpip.py [new file with mode: 0644]