]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - bin/dependencies_b.py
fixup autobahn compatibility with use 0.8.14
[irc/quakenet/qwebirc.git] / bin / dependencies_b.py
index 4a3ab007dd4641300f69a632545d5425966aa062..b3b82b0b11b8521f884b8497837089614f3ccaaa 100644 (file)
@@ -126,10 +126,15 @@ def check_json():
 \r
 def check_autobahn():\r
   try:\r
-    import autobahn.websocket\r
+    import autobahn, autobahn.websocket\r
+    x = autobahn.version.split(".")\r
+    if len(x) != 3:\r
+      raise ImportError("Unknown version: %s", autobahn.vesrion)\r
+    if (int(x[1]) < 8) or (int(x[1]) == 8 and int(x[2]) < 14):\r
+      raise ImportError()\r
     return 0\r
   except ImportError:\r
-    warn("autobahn not installed; websocket support will be disabled.",\r
+    warn("autobahn 0.8.14 (minimum) not installed; websocket support will be disabled.",\r
          "consider installing autobahn from:",\r
          "http://autobahn.ws/python/getstarted/")\r
     return 1\r