[Distutils] the svn >= 1.5 bug with setuptools/command/sdist.py: global name 'log' is not defined

Tarek Ziadé ziade.tarek at gmail.com
Tue Aug 19 15:09:36 CEST 2008

On Tue, Aug 19, 2008 at 2:44 PM, Sebastien Douche <sdouche at gmail.com> wrote:

> On Tue, Aug 19, 2008 at 07:29, Jeroen Ruigrok van der Werven
> <asmodai at in-nomine.org> wrote:
> > -On [20080819 06:19], dan corson (dcorson at facebook.com) wrote:
> >>But I'm not sure it was addressed, and now we're getting the same
> >>problem here with svn 1.5.1.
> >
> > easy_install -U setuptools==dev
> I would like to know why 0.7 (or 0.6c9) is not out. This solution is
> not clean, and doesn't work with Buildout.

It should work with:

versions = versions

setuptools = dev

*But* it doesn't because of a bug I mentioned a few months ago:

In setuptools's package_index module, the _download_url determines a
filename using the last part of the URL:




and it goes to your download folder at:


But this is also the name used by zc.buildout to decompress the package :)

leading to an error, in the next attempt do get setuptools:

IOError: [Errno 21] Is a directory: '.../downloads/dist/setuptools'

In any case, this setuptools behaviour is bad, because if your url is:


It will end up in a "trunk" folder. And if you have two packages that points
to an url finishing with "trunk"
it will fail.

So, setuptools should use a random, unique, temporary name in this function
to make buildout happy with any kind of dev package.

> Are there any unrelsolved bugs  ?

setuptools has its own tracker here : http://bugs.python.org/setuptools

> --
> Seb
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig

Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20080819/5de47902/attachment.htm>

More information about the Distutils-SIG mailing list