no version number in the .egg-info filename

Bug #390965 reported by Zooko Wilcox-O'Hearn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-setuptools (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: python-setuptools

The .egg-info file in python-setuptools is named:

/usr/lib/python2.6/dist-packages/setuptools.egg-info

Most .egg-info files are named something with their version number in it, such as:

/var/lib/python-support/python2.5/GnuPGInterface-0.3.2.egg-info
/var/lib/python-support/python2.5/cups-1.0.egg-info
/var/lib/python-support/python2.5/mercurial-1.1.2.egg-info
/var/lib/python-support/python2.5/python_debian-0.1.12ubuntu2.egg-info
/var/lib/python-support/python2.5/pyusb-0.4.1.egg-info

I have written some code for the stdeb tool (http://github.com/astraw/stdeb/tree/master ) which parses the filenames in search of the version numbers, and this code works for all packages that I have tried except for setuptools. Also I know that a new version of distutils is being developed, and I think there was some discussion about the possibility that it could use stat to learn the version numbers of multiple packages at once by inspecting the filenames of their .egg-infos. I don't know if that is the plan for the new distutils, but having all Ubuntu packages be uniform in this way seems like it wouldn't hurt and might help. If python-setuptools needs to have a versionless .egg-info filename for some reason, then perhaps we could add a symlink from setuptools-0.6c9.egg-info to setuptools.egg-info?

Thanks!

Regards,

Zooko

Revision history for this message
Zooko Wilcox-O'Hearn (zooko) wrote :

Hey folks, I saw today that this bug is blocking me from using stdeb (http://github.com/astraw/stdeb/tree/master ) to automatically generate a .dsc for my pycryptopp project on Ubuntu Jaunty. Why is the setuptools .egg-info file different from what the normal distutils or setuptools build of a Python package would produce? How hard is it to change it to be "setuptools-0.6c9.egg-info" instead? Or, if there's some reason not to do that, then how about adding a symlink?

Thanks!

Revision history for this message
Zooko Wilcox-O'Hearn (zooko) wrote :

Interestingly the new packaging of python-setuptools in Ubuntu Lucid adds a .egg-info for Distribute with a working version number but leaves the .egg-info for setuptools with no version number:

$ dpkg --listfiles python-setuptools | grep egg-info$
/usr/lib/python2.6/dist-packages/distribute-0.6.10.egg-info
/usr/share/pyshared/distribute-0.6.10.egg-info
/usr/share/pyshared/setuptools.egg-info
/usr/lib/python2.6/dist-packages/setuptools.egg-info

It is too bad that we didn't add in the setuptools version number when we had the chance! But I guess it is a bit late in the Lucid release cycle to change it now. ;-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.