[Distutils] Are there any plans to move to pip/wheels in buildout?

Matthew Iversen matt at notevencode.com
Sun Dec 7 10:28:02 CET 2014

Between setuptools / wheel / pip / virtualenv there is actually a good case
for a shared common code project to vendor from. The easiest example of
functionality contained within this would be version parsing, although
there are a number of other features as well (eg installing a wheel).

Currently the case is that this is half done by pip vendoring setuptools'
pkg_resources.py although I think it would be of great benefit to all
projects to formalise this situation into a new discrete codebase in the
future. Distlib is a candidate project to fulfill this role but it would
need a good bit of vetting beforehand AFAIK.

Pip doesn't offer any api mainly because is too messy / large / would take
away too much time for the developers to spend time creating a good api
that we could stick to. Sort of "We'd love to, but have you seen the issue
list... :(".

In that respect that is actually the use case that distlib aims to provide.
Pip currently uses distlib's code to install wheels.

That said I'd reiterate Donald's comment that we'd love to see a
wanted-functionality list from projects like buildout for such a
hypothetical official future utility project.
On 4 Dec 2014 03:22, "Donald Stufft" <donald at stufft.io> wrote:

> > On Dec 3, 2014, at 11:19 AM, Jim Fulton <jim at zope.com> wrote:
> >
> > On Wed, Dec 3, 2014 at 11:14 AM, Paul Moore <p.f.moore at gmail.com> wrote:
> >> On 3 December 2014 at 16:05, Daniel Holth <dholth at gmail.com> wrote:
> >>> Wheel also has its own installer. It hasn't received as much attention
> >>> since pip gained support.
> >>
> >> That's actually a very good point - the wheel project has its own
> >> "install a wheel" API, not just the command line tool. If that's all
> >> buildout needs, it may be a simple way of adding wheel support. If
> >> buildout needs "the other stuff" that pip/setuptools provides, around
> >> discovery and downloading from PyPI, version/requirements checking,
> >> script wrappers, etc, then that's a bigger issue of course.
> >
> > Yup. Buildout uses setuptools to find distributions.
> >
> > I suppose the wheel installer library could facilitate adding wheel
> > support to setuptools.  Maybe someone on the buildout team should
> > look at that.  My guess is that adding discovery of wheels in indexes and
> > such probably isn't that hard.
> >
> Installing Wheels in general isn’t that hard either TBH. It probably
> wouldn’t be a ton of work to add support for that to setuptools.
> ---
> Donald Stufft
> PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20141207/04b30e35/attachment.html>

More information about the Distutils-SIG mailing list