[Distutils] flip the pip dependencies (was Current status of PEP 439)

Donald Stufft donald at stufft.io
Sat Jul 13 21:14:48 CEST 2013

On Jul 13, 2013, at 2:30 PM, Marcus Smith <qwcode at gmail.com> wrote:

> I think we need to flip the dependencies so that pip as the installer has all the essential code for installation from PyPI and then setuptools and distlib depend on that pip infrastructure. No need to add anything to the standard library prematurely when we can add it to pip instead.
> not sure about the flip, but let me break some things down a bit for those who don't know:
> what pip has internally already (i.e. literally in it's package namespace):
> - pypi crawling/downloading
> - wheel installing (does not require the pypi wheel project; only building wheels requires that)
> what pip has "bundled' already:
> - distlib (in 'pip.vendor'; currently only used for some --pre version logic)
> what pip still needs to be self-sufficient to do wheel installs:
> - something bundled or internal that does what pkg_resources does
> theoretical options:
> 1)  bundle setuptools/pkg_resources
> 2)  use the bundled distlib to replace our use of pkg_resources
> 3)  internalize pkg_resources as pip.pkg_resources (i.e. fork off pkg_resources)
> Marcus
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

As you're aware I think it makes the most sense to just bundle setuptools wholesale. This makes it impossible to "break" pip by something going wrong in setuptools causing it to be uninstalled and means that for users who are only doing installs, they don't need setuptools installed just pip.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130713/33f55e2c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130713/33f55e2c/attachment.pgp>

More information about the Distutils-SIG mailing list