[Distutils] Setuptools bug with tag_svn_revision

Ian Bicking ianb at colorstudy.com
Tue Jun 5 19:35:20 CEST 2007


If you try to do egg_info in a package that is in svn, but where any 
directory or subdirectory in the package has been added but not 
committed to svn, you'll get this error:

Traceback (most recent call last):
   File "setup.py", line 25, in ?
     entry_points="""
   File "distutils/core.py", line 149, in setup
   File "/usr/lib/python2.4/distutils/dist.py", line 946, in run_commands
     self.run_command(cmd)
   File "/usr/lib/python2.4/distutils/dist.py", line 965, in run_command
     cmd_obj.ensure_finalized()
   File "/usr/lib/python2.4/cmd.py", line 117, in ensure_finalized
     pass
   File 
"/home/ianb/env/webdev/lib/python2.4/setuptools-0.6c6-py2.4.egg/setuptools/command/egg_info.py", 
line 85, in finalize_options
     self.vtags = self.tags()
   File 
"/home/ianb/env/webdev/lib/python2.4/setuptools-0.6c6-py2.4.egg/setuptools/command/egg_info.py", 
line 179, in tags
     ):  version += '-r%s' % self.get_svn_revision()
   File 
"/home/ianb/env/webdev/lib/python2.4/setuptools-0.6c6-py2.4.egg/setuptools/command/egg_info.py", 
line 227, in get_svn_revision
     localrev = max([int(m.group(1)) for m in revre.finditer(data)])
ValueError: max() arg is an empty sequence



-- 
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org
             | Write code, do good | http://topp.openplans.org/careers


More information about the Distutils-SIG mailing list