The patch http://bugs.python.org/file10198/setuptools_patch.txt does not
fix the problem, which is a simple little coding error in Python.

A simple example of the same problem would be this Python command line
session:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print x
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
>>> 

The problem described by this bug is that the symbol 'log' is not
defined. What needs to be done to define 'log' is these lines need to be
put into the sdist.py file somewhere before 'log' is referenced:

import logging
log = logging.getLogger(__file__)

It happens to be the case that Subversion 1.5 working copies *expose*
this bug quite noisily, but Subversion 1.5 is not really what the bug is
about. It's about a simple little coding error that is trivial to fix.

Chances are that setuptools won't behave quite as usefully in the
presence of Subversion 1.5 as it would if it understood svn 1.5 working
copies when this fix is applied, but it doesn't just croak off with a
stack trace either. It prints/logs a warning carries on doing the best
it can do. But the whole Subversion 1.5 thing is really a separate
issue.

-- 
undefined global name 'log' in command/sdist.py module
https://bugs.launchpad.net/bugs/264171
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to