[Python-Dev] PEP 453 Round 4 - Explicit bootstrapping of pip in Python installations

Donald Stufft donald at stufft.io
Thu Sep 19 16:15:45 CEST 2013

I've updated the PEP to include the solution for Debian that Nick
mentioned and to clarify the behavior in the upgrade case.

Online: http://hg.python.org/peps/rev/6c1b658bc16c

diff -r 2899ba3bcef1 pep-0453.txt
--- a/pep-0453.txt	Thu Sep 19 09:23:03 2013 -0400
+++ b/pep-0453.txt	Thu Sep 19 10:12:59 2013 -0400
@@ -294,7 +294,9 @@

 This ensures that, by default, installing or updating CPython will ensure
Update PEP453 to address Debian's concerns and Antoine's
 that the installed version of pip is at least as recent as the one included
-with that version of CPython.
+with that version of CPython. If a newer version of pip has already been
+installed then ``python -m extractpip --upgrade`` will simply return without
+doing anything.

 Installing from source
@@ -532,6 +534,12 @@
   * This may take the form of separate packages with dependencies on each
     other so that installing the Python package installs the pip package
     and installing the pip package installs the Python package.
+  * Another reasonable way to implement this is to package pip separately but
+    ensure that there is some sort of global hook that will recommend
+    installing the separate pip package when a user executes ``pip`` without
+    it being installed. Systems that choose this option should ensure that
+    the ``pyvenv`` command still installs pip into the virtual environment
+    by default.

 * Do not remove the bundled copy of pip.

Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/python-dev/attachments/20130919/4b41c680/attachment.sig>

More information about the Python-Dev mailing list