Red Hat Bugzilla – Bug 185561
update and use setuptools
Last modified: 2007-11-30 17:11:27 EST
Description of problem:
I am trying to use a setuptools based program. But it fails with Cheetah not
installed although it is installed. I think that it comes from the fact that the
setuptools related stuff from Cheetah isn't installed. So I propose this diff
for the Cheetah spec file that could be used to update Cheetah to the latest
upstream release and set setuptools
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 126168 [details]
update to latest version and use setuptools
I can't find any other packages in Extras that include the extra metadata for
setuptools. This metadata is only necessary if you're distributing your pakcage
in .egg format, and so is inappropriate for inclusion in an RPM-based
distribution, which maintains its own metadata. Note that I'm waiting for the
2.0 GA release of Cheetah before I update the package version (hopefully soon).
It seems that setuptool based packaged search for dependencies informations even
if a package has been installed with --single-version-externally-managed.
With the paster script from python-paste-script, I get this with 1.0-2.fc5:
[dumas@localhost ~]$ paster
Traceback (most recent call last):
File "/usr/bin/paster", line 5, in ?
from pkg_resources import load_entry_point
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 2356, in ?
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 585, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 483, in resolve
raise DistributionNotFound(req) # XXX put more info here
With the python-cheetah I did myself it shows the paster help message, as expected.
The python paste and paste script srpms I use are at
I don't know a lot about python, so it is very possible that I am doing
I think python-paste-script's use of pkg_resources is just flawed. It's
duplicating data that is already managed by RPM. Other python packages just
import the modules they need, confident that they've been installed already
because of RPM dependencies. I'm not sure if there's a good way to make
pkg_resources and RPM live together happily, but I'd suggest removing the
"install_requires" section from setup.py as a starting point, and see if that
makes any difference. In the meantime, this looks like a bug either with
python-paste-script or pkg_resources, so I'm closing as NOTABUG. I'll update
python-cheetah to 2.0 as soon as 2.0 GA is released.