[Distutils] setuptools: name quoting

Ian Bicking ianb at colorstudy.com
Tue Sep 20 21:59:15 CEST 2005


I'm a bit confused about name quoting.  I have a package with a name 
"Todo_SQLObject_ZPT", and egg_info writes to 
"Todo-SQLObject-ZPT.egg-info".  Why?  I thought -'s were bad, but _'s 
were okay...?

I'm also getting a traceback when I try to do "python setup develop", 
following.  The application that is causing this problem is at 
http://svn.pythonpaste.org/Paste/apps/Todo_SQLObject_ZPT/trunk (it's 
probably broken in other ways, I'm still in the process of converting 
it).  I'm using the latest CVS version of setuptools.





Todo_SQLObject_ZPT$ python setup.py egg_info develop
running egg_info
writing ./Todo-SQLObject-ZPT.egg-info/PKG-INFO
writing top-level names to ./Todo-SQLObject-ZPT.egg-info/top_level.txt
running develop
Traceback (most recent call last):
   File "setup.py", line 18, in ?
     package_data={
   File "/usr/local/lib/python2.4/distutils/core.py", line 149, in setup
     dist.run_commands()
   File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in 
run_commands
     self.run_command(cmd)
   File "/usr/local/lib/python2.4/distutils/dist.py", line 965, in 
run_command
     cmd_obj.ensure_finalized()
   File "/usr/local/lib/python2.4/distutils/cmd.py", line 117, in 
ensure_finalized
     self.finalize_options()
   File "/usr/home/ianb/co/setuptools/setuptools/command/develop.py", 
line 45, in finalize_options
     easy_install.finalize_options(self)
   File 
"/usr/home/ianb/co/setuptools/setuptools/command/easy_install.py", line 
181, in finalize_options
     self.package_index = self.create_index(
   File "/usr/home/ianb/co/setuptools/setuptools/package_index.py", line 
128, in __init__
     Environment.__init__(self,*args,**kw)
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 558, in 
__init__
     self.scan(search_path)
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 588, in scan
     self.add(dist)
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 610, in add
     if dist not in dists:
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 1760, in 
__cmp__
     def __cmp__(self, other): return cmp(self.hashcmp, other)
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 1760, in 
__cmp__
     def __cmp__(self, other): return cmp(self.hashcmp, other)
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 1755, in 
<lambda>
     lambda self: (
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 1782, in 
parsed_version
     self._parsed_version = pv = parse_version(self.version)
   File "/usr/home/ianb/co/setuptools/pkg_resources.py", line 1797, in 
version
     raise ValueError(
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", 
Todo-SQLObject-ZPT [unknown version] (/usr/home/ianb/co/Todo_SQLObject_ZPT))


More information about the Distutils-SIG mailing list