Fails to guess package for python-cheetah

Bug #804622 reported by James Westby
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-defaults (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

python-cheetah installs Cheetah-*-.egg-info, so I put "install_requires=["Cheetah"]" in setup.py.

When dh_python2 tries to guess the package name it uses "safe_name" before it puts it in the regex,
which calls lower() on the string.

This means that it doesn't find the Cheetah egg-info dir and so complains that the package
can't be found.

If it didn't call lower() it wouldn't be found. I don't know what the purpose of the lower
call is in a function called safe_name, and it says that it is taken from distribute, so
there may be a reason for it there.

Thanks,

James

Revision history for this message
James Westby (james-w) wrote :

distribute seems to have a safe_name function in pkg_resources.py

https://bitbucket.org/tarek/distribute/src/edd2f2c24b20/pkg_resources.py#cl-1130

but it doesn't call lower() and is different to debpython's anyway.

Thanks,

James

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.