156
158
log.error("PyQt not installed.")
158
160
log.info("--> OK")
160
# check version of Qt
161
log.info("Checking Qt version...")
163
qtMajor = int(qVersion().split('.')[0])
164
log.debug("qVersion() = %s" % qVersion())
165
log.info("--> Version %s installed." % qVersion())
167
if qtMajor < MINIMUM_QT_MAJOR_VER:
168
log.error("Incorrect version of Qt installed. Ver. 3.0 or greater required.")
172
log.info("Checking SIP version...")
177
log.error("Unable to import pyqtconfig. PyQt may not be properly installed.")
179
c = pyqtconfig.Configuration()
180
log.info("--> Version %s installed" % c.sip_version_str)
183
log.info("Checking PyQt version...")
185
#check version of PyQt
187
pyqtVersion = PYQT_VERSION_STR
188
log.debug("PYQT_VERSION_STR = %s" % pyqtVersion)
190
pyqtVersion = PYQT_VERSION
191
log.debug("PYQT_VERSION = %s" % pyqtVersion)
193
while pyqtVersion.count('.') < 2:
196
(maj_ver, min_ver, pat_ver) = pyqtVersion.split('.')
198
if pyqtVersion.find('snapshot') >= 0:
199
log.warning("A non-stable snapshot version of PyQt is installed.")
202
maj_ver = int(maj_ver)
203
min_ver = int(min_ver)
204
pat_ver = int(pat_ver)
206
maj_ver, min_ver, pat_ver = 0, 0, 0
208
log.info("--> Version %d.%d.%d installed." % (maj_ver, min_ver, pat_ver))
210
if maj_ver < MINIMUM_PYQT_MAJOR_VER or \
211
(maj_ver == MINIMUM_PYQT_MAJOR_VER and min_ver < MINIMUM_PYQT_MINOR_VER):
212
log.error("HPLIP may not function properly with the version of PyQt that is installed (%d.%d.%d)." % (maj_ver, min_ver, pat_ver))
213
log.error("Incorrect version of PyQt installed. Ver. %d.%d or greater required." % (MINIMUM_PYQT_MAJOR_VER, MINIMUM_PYQT_MINOR_VER))
164
# check version of Qt
165
log.info("Checking Qt version...")
167
qtMajor = int(qVersion().split('.')[0])
168
log.debug("qVersion() = %s" % qVersion())
169
log.info("--> Version %s installed." % qVersion())
171
if qtMajor < MINIMUM_QT_MAJOR_VER:
172
log.error("Incorrect version of Qt installed. Ver. 3.0 or greater required.")
176
log.info("Checking SIP version...")
181
log.error("Unable to import pyqtconfig. PyQt may not be properly installed.")
183
c = pyqtconfig.Configuration()
184
log.info("--> Version %s installed" % c.sip_version_str)
187
log.info("Checking PyQt version...")
189
#check version of PyQt
191
pyqtVersion = PYQT_VERSION_STR
192
log.debug("PYQT_VERSION_STR = %s" % pyqtVersion)
194
pyqtVersion = PYQT_VERSION
195
log.debug("PYQT_VERSION = %s" % pyqtVersion)
197
while pyqtVersion.count('.') < 2:
200
(maj_ver, min_ver, pat_ver) = pyqtVersion.split('.')
202
if pyqtVersion.find('snapshot') >= 0:
203
log.warning("A non-stable snapshot version of PyQt is installed.")
206
maj_ver = int(maj_ver)
207
min_ver = int(min_ver)
208
pat_ver = int(pat_ver)
210
maj_ver, min_ver, pat_ver = 0, 0, 0
212
log.info("--> Version %d.%d.%d installed." % (maj_ver, min_ver, pat_ver))
214
if maj_ver < MINIMUM_PYQT_MAJOR_VER or \
215
(maj_ver == MINIMUM_PYQT_MAJOR_VER and min_ver < MINIMUM_PYQT_MINOR_VER):
216
log.error("HPLIP may not function properly with the version of PyQt that is installed (%d.%d.%d)." % (maj_ver, min_ver, pat_ver))
217
log.error("Incorrect version of PyQt installed. Ver. %d.%d or greater required." % (MINIMUM_PYQT_MAJOR_VER, MINIMUM_PYQT_MINOR_VER))
217
221
log.info(utils.bold("\nChecking for library dependencies..."))
218
222
ldconfig = utils.which('ldconfig')
219
223
status, output = run('%s -p' % os.path.join(ldconfig, 'ldconfig'))
221
checklib(output, "libsnmp")
225
checklib(output, "libnetsnmp")
222
226
checklib(output, "libjpeg")
223
227
checklib(output, "libusb")
224
228
checklib(output, "libcrypto")
243
247
log.info("--> %s" % output.splitlines()[0])
244
248
log.info("--> OK")
246
log.info("Checking automake...")
247
status, output = run('automake --version')
249
log.error("Not found!")
251
log.info("--> %s" % output.splitlines()[0])
254
log.info("Checking autoconf...")
255
status, output = run('autoconf --version')
257
log.error("Not found!")
259
log.info("--> %s" % output.splitlines()[0])
250
##log.info("Checking automake...")
251
##status, output = run('automake --version')
253
## log.error("Not found!")
255
## log.info("--> %s" % output.splitlines()[0])
256
## log.info("--> OK")
258
##log.info("Checking autoconf...")
259
##status, output = run('autoconf --version')
261
## log.error("Not found!")
263
## log.info("--> %s" % output.splitlines()[0])
264
## log.info("--> OK")
262
266
log.info("Checking make...")
263
267
status, output = run('make --version')