[Distutils] Buildout 2 and system packages

Marius Gedminas marius at pov.lt
Sat Feb 23 19:13:59 CET 2013


On Sat, Feb 23, 2013 at 09:54:44AM -0500, Jim Fulton wrote:
> On Fri, Feb 22, 2013 at 1:29 PM, Lele Gaifax <lele at metapensiero.it> wrote:
> > Jim Fulton <jim at zope.com> writes:
> >
> >> The problem is that site-packages doesn't have a predictable
> >> location, as demonstrated by the example given in this thread.  On
> >> some systems, there are multiple directories containing custom
> >> modules.
> >
> > Sorry to insist (being dumb :), but couldn't buildout, that should know
> > the list of explicitly requested distributions, sort the paths giving
> > precedence to them?
> 
> It *could* sort them by the order it encountered them when it was
> computing the working set, however, if one of the requirements it
> finds is in a system directory, and it happens to come early, the
> system directory can have other distributions that shadow
> distributions found by buildout.

And since distribute is usually in dist-packages on Ubuntu, and
distribute is the first requirement needed for buildbot itself, I always
get dist-packages as first item in sys.path in bin/buildout.

And then all my buildouts fail because Ubuntu ships zope.interface 3.6.1
in dist-packages, and it is treated as a develop egg.

Marius Gedminas
-- 
"I'll be Bach."  -- Johann Sebastian Schwarzenegger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130223/29631012/attachment.pgp>


More information about the Distutils-SIG mailing list