[Distutils] [buildout] branches languishing? (site-packages and distutils scripts)

Gary Poster gary.poster at canonical.com
Tue Jan 19 17:29:42 CET 2010


On Jan 19, 2010, at 11:08 AM, Reinout van Rees wrote:

> On 01/19/2010 11:15 AM, Chris Withers wrote:
>> 
>> gary-4-include-site-packages

I'm getting back to this this week.  The new branch is svn+ssh://svn.zope.org/repos/main/zc.buildout/branches/gary-4 .  It has most of what I intend but needs a bit more work.  It could be ready for Jim's review this week.

> include-site-packages branch: from what I see in the changelog (http://tinyurl.com/y9x27oj), this would mean that a globally installed package is found by buildout/setuptools' dependency handling?
> 
> So if I install PIL with debian's apt-get, buildout doesn't attempt to grab another copy from pypi?  Unsure about that from reading the changelog.

The old branch supported that, with the right buildout configuration, and if apt-get installed the package as an egg.

The new branch does not try for that.  It simply builds dependency sets ignoring the Python's site.py (so, ignoring site-packages).  If desired, you can have scripts import site.py *after* the buildout eggs have been set up (so if your buildout did not require PIL, but your system's Python had it, your code could use the system's version if you were willing to open yourself up to that potential fragility), but that's the only integration.

If it is really desired, I could look at porting the work later from the previous branch (after the basic work on the new approach lands).  I am currently of the opinion that it is too tricky for too rare of a win (and I don't need it right now ;-) ).

Gary


More information about the Distutils-SIG mailing list