[Distutils] A Bug with Setuptools.. Sdist

Piyush Verma piyush at piyushverma.net
Wed Oct 29 00:39:13 CET 2008

Well... there seems a bug in setuptools.
In commands/sdist.py

There is a variable log accesed in Line 98:
file "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", 
in the method entries_finder
    log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined

SO at the top of the file please use :

from distutils import log

-- command/sdist.py    2008-10-20 16:02:09.000000000 +0530
+++ sdist_old.py        2008-10-20 16:03:45.000000000 +0530
@@ -1,6 +1,5 @@
from distutils.command.sdist import sdist as _sdist
from distutils.util import convert_path
=2Dfrom distutils import log
import os, re, sys, pkg_resources
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20081029/bff838d2/attachment.htm>

More information about the Distutils-SIG mailing list