Bug#684560: [gaphor] gaphor requires python-setuptools
* Gediminas Paulauskas , 2012-08-27, 15:53: 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. dh_python2 does 2) for a year already: python-defaults (2.7.2-2) experimental; urgency=low [ Piotr Ożarowski ] * dh_python2: ... - remove setuptools from requires.txt (it is replaced with python-pkg-resources Debian dependency) ... Good point, I forgot about it. A no-change rebuild would fix the following binary packages: python-zc.buildout python-zope.exceptions python-zope.interface However, zope.exceptions and zope.interface build also python3-* packages, which would _not_ be fixed by such rebuild. -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#684560: [gaphor] gaphor requires python-setuptools
2012/8/25 Jakub Wilk : > * Arnaud Fontaine , 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. dh_python2 does 2) for a year already: python-defaults (2.7.2-2) experimental; urgency=low [ Piotr Ożarowski ] * dh_python2: ... - remove setuptools from requires.txt (it is replaced with python-pkg-resources Debian dependency) ... Most likely the packages mentioned have not been rebuild since then. Or they use dh_pydeb (from python-van.pydeb) that does not remove setuptools from requires.txt > 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... :) Most zope packages depend on setuptools. You are right that it is not really needed, but for historical reasons it is there upstream for many packages. -- Gediminas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#684560: [gaphor] gaphor requires python-setuptools
* Arnaud Fontaine , 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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#684560: [gaphor] gaphor requires python-setuptools
Control: severity -1 serious Control: reassign -1 python-zope.component Control: affects -1 gaphor If python-setuptools 0.6.24-1 is not installed gaphor produces following trace-back on start-up: gaphor Traceback (most recent call last): File "/usr/bin/gaphor", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: distribute This is because python-zope.component has "setuptools" in their requires.txt without depending on python-setuptools. AFAICS zope.component doesn't use setuptools at all, so the requires.txt file should be corrected. -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#684560: [gaphor] gaphor requires python-setuptools
Package: gaphor Version: 0.17.0-1 Severity: normal --- Please enter the report below this line. --- If python-setuptools 0.6.24-1 is not installed gaphor produces following trace-back on start-up: gaphor Traceback (most recent call last): File "/usr/bin/gaphor", line 5, in from pkg_resources import load_entry_point File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2707, in working_set.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: distribute --- System information. --- Architecture: i386 Kernel: Linux 3.2.0-3-686-pae Debian Release: wheezy/sid 500 testing security 500 testing multimedia 500 testing debian --- Package information. --- Depends (Version) | Installed ===-+-== python2.7 | 2.7.3~rc2-2.1 OR python2.6 | 2.6.8-0.2 python(>= 2.6.6-7~) | 2.7.3~rc2-1 python (<< 2.8) | 2.7.3~rc2-1 python-gaphas(>= 0.6.0) | 0.7.2-1 python-etk.docking | 0.2-1 python-zope.component | 3.10.0-2 python-pkg-resources| 0.6.24-1 python-cairo| 1.8.8-1+b2 python-gnome2 | 2.28.1+dfsg-1 python-gtk2 | 2.24.0-3 python-gobject | 3.2.2-1 python-simplegeneric| 0.8.1-1 Package's Recommends field is empty. Package's Suggests field is empty. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org