diff options
author | Chris Porter <slug@qwebirc.org> | 2011-02-19 04:21:08 (GMT) |
---|---|---|
committer | Chris Porter <slug@qwebirc.org> | 2011-02-19 04:21:08 (GMT) |
commit | d8d3cf34b62a7419103bcf004457a613042aeb63 (patch) | |
tree | 0ecc931a83907d5a3814b1341f98131601775be4 | |
parent | 6d79f5b9c046cbe3e2d80faf26f4cf62825ebe67 (diff) |
Add zope.interface dependency check.
-rw-r--r-- | bin/dependencies_b.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/dependencies_b.py b/bin/dependencies_b.py index e5ecda5..89fbd5f 100644 --- a/bin/dependencies_b.py +++ b/bin/dependencies_b.py @@ -15,6 +15,7 @@ def check_dependencies(): i = 0
check_twisted()
+ check_zope()
check_win32()
i+=check_json()
i+=check_java()
@@ -71,6 +72,18 @@ def check_hg(): return 0
+def check_zope():
+ try:
+ from zope.interface import Interface
+ except ImportError:
+ if sys.platform.startswith("win"):
+ fail("qwebirc requires zope interface",
+ "see pypi: http://pypi.python.org/pypi/zope.interface")
+ else:
+ fail("qwebirc requires zope interface.",
+ "this should normally come with twisted, but can be downloaded",
+ "from pypi: http://pypi.python.org/pypi/zope.interface")
+
def check_twisted():
try:
import twisted
|