def cross_check(pkg_resources_vers_and_locs, imported_vers_and_locs_list):
"""This function returns a list of errors due to any failed cross-checks."""
+ from _auto_deps import not_import_versionable, ignorable
+
errors = []
- not_pkg_resourceable = set(['python', 'platform', __appname__.lower()])
- not_import_versionable = set(['zope.interface', 'mock', 'pyasn1'])
- ignorable = set(['argparse', 'pyutil', 'zbase32', 'distribute', 'twisted-web', 'twisted-core', 'twisted-conch'])
+ not_pkg_resourceable = ['python', 'platform', __appname__.lower()]
for name, (imp_ver, imp_loc, imp_comment) in imported_vers_and_locs_list:
name = name.lower()
('service-identity', 'service_identity')
]
+# Dependencies for which we don't know how to get a version number at run-time.
+not_import_versionable = [
+ 'zope.interface',
+ 'mock',
+ 'pyasn1',
+]
+
+# Dependencies reported by pkg_resources that we can safely ignore.
+ignorable = [
+ 'argparse',
+ 'pyutil',
+ 'zbase32',
+ 'distribute',
+ 'twisted-web',
+ 'twisted-core',
+ 'twisted-conch',
+]
+
def require_more():
import sys