123 |
pass |
pass |
124 |
|
|
125 |
# wxPython |
# wxPython |
126 |
# print "checking wxPython library" |
print "checking wxPython library: ", |
127 |
# try: |
if (os.environ.has_key('DISPLAY') and len(os.environ["DISPLAY"])) or \ |
128 |
# from wxPython.wx import * |
os.name!='posix': |
129 |
# UIOK = 1 |
try: |
130 |
# except ImportError: |
from wxPython import wx |
131 |
# pass |
if wx.__version__[0:2]=='2.4': |
132 |
|
print "ok (%s)" % wx.__version__ |
133 |
|
UIOK = 1 |
134 |
|
else: |
135 |
|
print "Version 2.4 or greater needed" |
136 |
|
except ImportError: |
137 |
|
pass |
138 |
|
else: |
139 |
|
print "check not possible, X11 not working, assuming wxPython is there" |
140 |
|
UIOK = 1 |
141 |
|
|
142 |
# FIXME: We have more UIDrivers! |
# pyGTK 2.0 |
143 |
|
print "checking pyGTK 2.0 library: ", |
144 |
|
try: |
145 |
|
import pygtk |
146 |
|
pygtk.require('2.0') |
147 |
|
import gtk |
148 |
|
UIOK = 1 |
149 |
|
print 'ok.' |
150 |
|
except ImportError: |
151 |
|
print 'not found.' |
152 |
|
except RuntimeError: |
153 |
|
print 'found (but X is not running).' |
154 |
|
UIOK = 1 |
155 |
|
|
156 |
# We have no reliable way of verifying the above! FIXME |
# FIXME: We have more UIDrivers, add check for qt! |
|
UIOK = 1 |
|
157 |
|
|
158 |
if UIOK != 1: |
if UIOK != 1: |
159 |
print "---" |
print "---" |
161 |
No valid UI drivers are installed on this machine. |
No valid UI drivers are installed on this machine. |
162 |
Please install one of the following packages: |
Please install one of the following packages: |
163 |
wxPython - www.wxpython.org |
wxPython - www.wxpython.org |
164 |
|
pyGTK2 - ftp://ftp.gtk.org/pub/gtk/python/v2.0/ |
165 |
pyncurses - pyncurses.sourceforge.net |
pyncurses - pyncurses.sourceforge.net |
166 |
python curses - Read python install docs on how to activate |
python curses - Read python install docs on how to activate |
167 |
The file 'INSTALL' contains more information about dependencies. |
The file 'INSTALL' contains more information about dependencies. |