I want to get a list of all of the distributions I can find that satisfy a requirement. I've found the following works:
index.obtain(requirement) dists = [d for d in index[requirement.project_name] if d in requirement] where index is a setuptools.package_index.PackageIndex. Is there a better way? The obtain call seems to be necessary to initialize the index for the given project. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714 http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
