Ticket #897 (closed defect: fixed)
Allow Twisted dependency to be fulfilled by separate tarballs
|Reported by:||clepple||Owned by:|
In Fink, Twisted is broken up into individual packages based on the separate tarballs at the bottom of this page:
If I run the buildslave (0.8.1rc1) with some of those packages installed, it complains because there is no single package which provides "twisted":
$ buildslave --help Traceback (most recent call last):
File "/sw/bin/buildslave", line 5, in <module>
from pkg_resources import load_entry_point
File "/sw/lib/python2.6/site-packages/pkg_resources.py", line 2603, in <module>
File "/sw/lib/python2.6/site-packages/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/sw/lib/python2.6/site-packages/pkg_resources.py", line 565, in resolve
raise DistributionNotFound?(req) # XXX put more info here
If I change the requires.txt to say "twisted_core>=2.0.0" it works (although I have all the twisted* packages installed that are needed by the 0.8.0 package, so that probably needs to be augmented with the other slave required twisted-* packages.)
If possible, it would be nice to allow an alternate dependency on "twisted or (twisted_core and twisted_web)", although I am not familiar with the setuptools dependency syntax.
Marking this as "major" since it blocks the Fink package (and potentially other packaging systems which ship a modular Twisted), but it could be worked around with a patch at install time.