[Distutils] setuptools: but with svn-tag-revision and uncommitted project

Phillip J. Eby pje at telecommunity.com
Thu Oct 19 06:17:15 CEST 2006


I thought this was already fixed in SVN.  Have you updated?  (I'm 
currently on limited connectivity until next week.)

At 03:16 PM 10/18/2006, Ian Bicking wrote:
>Anything on this?
>
>Ian Bicking wrote:
> > I get this exception when I run "python setup.py egg_info" with
> > --tag-svn-revision and when the project has never been committed (and
> > hence there's no committed-rev).  I think it should instead give 0, or
> > at least a good error message.  (I don't see any problem with 0)
> >
> > Traceback (most recent call last):
> >    File "setup.py", line 24, in ?
> >      entry_points="""
> >    File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
> >      dist.run_commands()
> >    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/distutils/cmd.py", line 117, in 
> ensure_finalized
> >      self.finalize_options()
> >    File
> > 
> "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", 
>
> > line 85, in finalize_options
> >      self.vtags = self.tags()
> >    File
> > 
> "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/setuptools/command/egg_info.py", 
>
> > line 179, in tags
> >      ):  version += '-r%s' % self.get_svn_revision()
> >    File
> > 
> "/usr/local/lib/python2.4/site-packages/setuptools-0.6c3-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
> >
>
>_______________________________________________
>Distutils-SIG maillist  -  Distutils-SIG at python.org
>http://mail.python.org/mailman/listinfo/distutils-sig




More information about the Distutils-SIG mailing list