]>
jfr.im git - irc/quakenet/qwebirc.git/blob - bin/dependencies.py
bee1ffa731450204b5142f7e50e9bf8d9ac63423
3 def check_dependencies():
5 sys
.stderr
.write(message
+ "\n")
9 major
, minor
= sys
.version_info
[:2]
11 fail("qwebirc cannot run on python >=3 yet, install python 2.6.X:\nhttp://www.python.org/download/")
13 if major
< 2 or minor
< 5:
14 fail("qwebirc requires python 2.5, you have: %s, install python 2.6.X:\nhttp://www.python.org/download/" % ".".join(map(str, sys
.version_info
[:3])))
16 # this is done so we can use Python 2.5 syntax...
18 dependencies_b
.check_dependencies()
22 f
= open(".checked", "r")
29 f
= open(os
.path
.join("bin", ".checked"), "r")
39 sys
.stderr
.write("first run, checking dependencies...\n")
43 if __name__
== "__main__":