Bug#489263: python-setuptools: Unable to handle subversion 1.5 .svn/entries

1 view
Skip to first unread message

Mario Lang

unread,
Jul 4, 2008, 11:30:10 AM7/4/08
to
Package: python-setuptools
Version: 0.6c8-3
Severity: serious

The symptom:
x2:~/src/a11y/freedots% python setup.py sdist
running sdist
running egg_info
writing requirements to freedots.egg-info/requires.txt
writing freedots.egg-info/PKG-INFO
writing top-level names to freedots.egg-info/top_level.txt
writing dependency_links to freedots.egg-info/dependency_links.txt
writing entry points to freedots.egg-info/entry_points.txt
Traceback (most recent call last):
File "setup.py", line 84, in <module>
keywords = "braille, music notation, musicxml, midi, gtk"
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 141, in run
self.run_command('egg_info')
File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 171, in run
self.find_sources()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 252, in find_sources
mm.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 306, in run
self.add_defaults()
File "/usr/lib/python2.5/site-packages/setuptools/command/egg_info.py", line 333, in add_defaults
rcfiles = list(walk_revctrl())
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 45, in walk_revctrl
for item in ep.load()(dirname):
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 52, in _default_revctrl
for path in finder(dirname,path):
File "/usr/lib/python2.5/site-packages/setuptools/command/sdist.py", line 98, in entries_finder
log.warn("unrecognized .svn/entries format in %s", dirname)
NameError: global name 'log' is not defined
zsh: exit 1 python setup.py sdist

The code in /usr/lib/python2.5/site-packages/setuptools/command/sdist.py
is as follows:

def entries_finder(dirname, filename):
f = open(filename,'rU')
data = f.read()
f.close()
if data.startswith('8'): # subversion 1.4
for record in map(str.splitlines, data.split('\n\x0c\n')[1:]):
if not record or len(record)>=6 and record[5]=="delete":
continue # skip deleted
yield joinpath(dirname, record[0])
elif data.startswith('<?xml'):
for match in entries_pattern.finditer(data):
yield joinpath(dirname,unescape(match.group(1)))
else:
log.warn("unrecognized .svn/entries format in %s", dirname)

But my .svn/entries files start with '9' as the first character because
I am using subversion 1.5 (which is packaged).

It follows that this version of python-setuptools is
not compatible with subversion 1.5, breaking my setup.py files
because I upgraded to subversion 1.5. As it stands, setuptools
is not pretty unusable on my system.

-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-setuptools depends on:
ii python 2.5.2-1 An interactive high-level object-o
ii python-central 0.6.7 register and build utility for Pyt
ii python-pkg-resources 0.6c8-3 Package Discovery and Resource Acc

python-setuptools recommends no packages.

-- no debconf information

--
CYa,
⡍⠁⠗⠊⠕ | Debian Developer <URL:http://debian.org/>
.''`. | Get my public key via finger mlang/k...@db.debian.org
: :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
`. `'
`- <URL:http://delysid.org/> <URL:http://www.staff.tugraz.at/mlang/>

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Jason Edson

unread,
Jul 5, 2008, 5:00:19 AM7/5/08
to
adding:
from distutils import log
to the top of:
/usr/lib/python2.5/site-packages/setuptools/command/sdist.py
fixes it for me. This is my first bug report resonse so sorry if I formatted it wrong.

Jason Edson

Gabriel Farrell

unread,
Jul 11, 2008, 4:00:09 PM7/11/08
to
The patch at http://bugs.python.org/issue2770 fixes the issue by looking
for files that start with '9' as well as '8', though I imagine sdist.py
should import the log function since it references it. Silly setuptools.
Reply all
Reply to author
Forward
0 new messages