Bug#684560: [gaphor] gaphor requires python-setuptools

Jakub Wilk jwilk at debian.org
Sat Aug 25 13:03:16 UTC 2012


* Arnaud Fontaine <arnau at debian.org>, 2012-08-25, 17:05:
>After investigating a bit this  issue, it seems that both 
>zope.component and its requirement,  zope.interface, does 
>'install_requires' setuptools because pkg_resources is required for  
>zope namespace, but after install requires.txt ends up with setuptools.
>
>One solution would  be to patch setup.py to  remove the 
>install_requires line for setuptools, but it will be  required in a 
>lot of packages, so I'm wondering if dh_python2 should handle that 
>automatically  or with a specific option? What do you think? Thanks!

The current behviour of dh_python2 is IMHO errant. It should either
1) translate "setuptools" in requires.txt into dependency on 
python-setuptools or
2) remove "setuptools" from requires.txt when translating it into 
dependency on python-pkg-resources.

Looking at the problem with other side: should "setuptools" be in 
requires.txt in the first place if the package uses only pkg_resources?  
pkg_resources is _the_ thing that checks these requirements after all. I 
mean, it's like adding dpkg to Depends because you can't install the 
package without dpkg... :)

You're right that is a common problem. lintian4python detects these:

e: gracie: missing-requires.txt-dependency setuptools => python-setuptools
e: python-daemon: missing-requires.txt-dependency setuptools => python-setuptools
e: python-django-app-plugins: missing-requires.txt-dependency setuptools => python-setuptools
e: python-django-pagination: missing-requires.txt-dependency setuptools => python-setuptools
e: python-elib.intl: missing-requires.txt-dependency setuptools => python-setuptools
e: python-launchpadlib: missing-requires.txt-dependency setuptools => python-setuptools
e: python-liblas: missing-requires.txt-dependency setuptools => python-setuptools
e: python-pygraphviz: missing-requires.txt-dependency setuptools => python-setuptools
e: python-repoze.who-plugins: missing-requires.txt-dependency setuptools => python-setuptools
e: python-repoze.who-plugins: missing-requires.txt-dependency setuptools => python-setuptools
e: python-tgext.admin: missing-requires.txt-dependency setuptools => python-setuptools
e: python-twitter: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zc.buildout: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.component: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.copy: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.exceptions: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.i18n: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.interface: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.location: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.publisher: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.schema: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.security: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.sqlalchemy: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.testing: missing-requires.txt-dependency setuptools => python-setuptools
e: python-zope.traversing: missing-requires.txt-dependency setuptools => python-setuptools
e: python3-d2to1: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-lazr.uri: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-pyfits: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-stsci.distutils: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-wadllib: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-zope.exceptions: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-zope.fixers: missing-requires.txt-dependency setuptools => python3-setuptools
e: python3-zope.interface: missing-requires.txt-dependency setuptools => python3-setuptools
w: python-genshi: missing-requires.txt-optional-dependency setuptools => python-setuptools
w: python-turbogears: missing-requires.txt-optional-dependency setuptools => python-setuptools

Hopefully, for the most of the above packages there no practical 
consequences (yet...).

-- 
Jakub Wilk



More information about the pkg-zope-developers mailing list