X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/becfa8500e40fa390537860c34775cfedca388ea..5d2e785ca3e629e0eb151ad9fe93c6c1a6f7f794:/bin/dependencies_b.py diff --git a/bin/dependencies_b.py b/bin/dependencies_b.py index e5ecda5..66a26de 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() @@ -44,7 +45,7 @@ def check_java(): warn(specific, "java is not required, but allows qwebirc to compress output,", "making it faster to download.", "you can get java at http://www.java.com/") try: - p = subprocess.Popen(["java", "-version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen(["java", "-version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=os.name == "nt") p.communicate() if p.wait() != 0: java_warn("something went wrong looking for java.") @@ -60,7 +61,7 @@ def check_hg(): warn(specific, "mercurial (hg) is not required, but allows qwebirc to save bandwidth by versioning.", "you can get hg at http://www.selenic.com/mercurial/") try: - p = subprocess.Popen(["hg", "id"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + p = subprocess.Popen(["hg", "id"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=os.name == "nt") p.communicate() if p.wait() != 0: hg_warn("something went wrong looking for mercurial.") @@ -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