Comment 0 for bug 925744

Revision history for this message
Julian Taylor (jtaylor) wrote :

[Impact] networkx has setuptools in its requries.txt but not in its dependencies.
This causes pkg_resources.require tests to fail if python-setuptools is not installed
e.g. epigrass uses this and thus fails to start when python-setuptools is not installed.
See debian bug 639995

[Development Fix] fixed by removint setuptools from requires.txt

[Stable Fix] do the same

[Test Case]
have *no* python-setuptools installed
python -c "import pkg_resources as p; p.require('networkx')"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 654, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 552, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute

[Regression Potential]
low the setuptools dependency is unecessary, it is handled by python-pkg-resources (in recommends in networkx and depends on all users of this feature)

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python-networkx 1.5-2
ProcVersionSignature: Ubuntu 3.0.0-16.28-generic 3.0.17
Uname: Linux 3.0.0-16-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
CheckboxSubmission: e4c99b57321b0cd0d4cb65d85a85c1fb
CheckboxSystem: edda5d4f616ca792bf437989cb597002
Date: Thu Feb 2 22:33:07 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110805)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: python-networkx
UpgradeStatus: No upgrade log present (probably fresh install)