[Distutils] Buildout 1.5.0 and friends released (was Re: Buildout release news)

Gary Poster gary.poster at canonical.com
Tue Aug 24 03:01:35 CEST 2010

On Aug 23, 2010, at 6:38 PM, Attila Oláh wrote:

> Hello,
> On Mon, Aug 23, 2010 at 17:43, Gary Poster <gary.poster at canonical.com> wrote:
>> I have merged the betafix branch to trunk and made the releases of zc.buildout 1.5.0, zc.recipe.egg 1.3.0, and z3c.recipe.scripts 1.0.0.
> Here are some observations.
> 1. I had a line like this in my ~/.bashrc:
> export PYTHONPATH="/home/aatiis/local/lib/python2.6/site-packages/"
> This was causing a "RuntimeError: maximum recursion depth exceeded"
> when running "python bootstrap.py", with Python 2.[4567]. So I had to
> remove this line; however, this issue seems to be related to the new
> bootstrap.py file only, coming from
> http://svn.zope.org/repos/main/zc.buildout/trunk/bootstrap/bootstrap.py

Huh, that's interesting.  I was not able to dupe (I tried ``env PYTHONPATH=/home/gary/py/lib/python2.6/site-packages 26python bootstrap.py``, where 26python is a local Python).  Could you give me a traceback?  (Off-list, perhaps.)

> 2. The recipe called "djangorecipe" has a weird issue. The cause seems
> to be that it uses ``zc.buildout.easy_install.scripts`` instead of
> ``zc.buildout.easy_install.sitepackage_safe_scripts``.

Yeah.  That's one we use too, and I intend to upgrade it eventually if no-one beats me to it.

> he generated
> scripts have the following issue: Say I have PIL installed globally,
> and the generated script will have the global one's project root
> directory added to sys.path, instead of the one in the "eggs"
> directory (there *is* a PIL in the "eggs" dir, though). Now, my
> "./bin/django" looks like this:
> #!/usr/bin/python2.6
> import sys
> sys.path[0:0] = [
> ...
>    '/usr/lib64/python2.6/site-packages/PIL',
> ...
> ]
> ...
> Why is the "PIL" added to sys.path?

As you and I said, it's the old code path, so all bets are off with a system Python.  Wanna upgrade djangorecipe for me? :-)  Anyway, in this case, I believe that particular spelling of the path has to do with how PIL is often installed.


More information about the Distutils-SIG mailing list