[Distutils] A Bug with Setuptools.. Sdist

Phillip J. Eby pje at telecommunity.com
Wed Oct 29 00:53:19 CET 2008


You're using 0.6c8 or older; upgrade to 0.6c9.

At 05:09 AM 10/29/2008 +0530, Piyush Verma wrote:
>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",
>line=98,
>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
>_______________________________________________
>Distutils-SIG maillist  -  Distutils-SIG at python.org
>http://mail.python.org/mailman/listinfo/distutils-sig



More information about the Distutils-SIG mailing list