2
# check.py -- check for system requirements
10
if __name__ == "__main__":
11
print "Checking Python version:",
12
print ".".join(map(str, sys.version_info[:2]))
13
if sys.version_info < (2, 4):
14
raise SystemExit("%s requires at least Python 2.4. "
15
"(http://www.python.org)" % NAME)
17
print "Checking for PyGTK >= 2.8:",
22
if gtk.pygtk_version < (2, 8) or gtk.gtk_version < (2, 8):
25
raise SystemExit("not found\n%s requires PyGTK 2.8. "
26
"(http://www.pygtk.org)" % NAME)
29
print "Checking for PyGSt >= 0.10.1:",
34
if gst.pygst_version < (0, 10, 1):
37
raise SystemExit("not found\n%s requires gst-python 0.10.1. "
38
"(http://gstreamer.freedesktop.org)" % NAME)
41
print "Checking for Mutagen >= 1.9:",
44
if mutagen.version < (1, 9):
47
raise SystemExit("not found\n%s requires Mutagen 1.9.\n"
48
"(http://www.sacredchao.net/quodlibet/wiki/Development/Mutagen)" % NAME)
51
print "Checking for ctypes:",
54
print ("not found\n%s recommends ctypes.\n"
55
"\t(http://starship.python.net/crew/theller/ctypes/)" % NAME)
58
print "\nYour system meets the requirements to install %s." % NAME
59
print "Type 'make install' (as root) to install it."
60
print "You may want to make some extensions first; see the README file."
62
if sys.argv[1:] and os.path.isdir(sys.argv[1]):
63
print "\nIt looks like you might have Quod Libet installed already."
64
print "Installing directly over an old version is not supported."
65
print "Please remove %s before continuing." % sys.argv[1]