Properly fix up version checks...

This commit is contained in:
Florian Bruhin 2017-10-12 22:41:03 +02:00
parent 07b1b3fbd4
commit bf1d6acb06

View File

@ -171,7 +171,7 @@ def check_qt_version():
from PyQt5.QtCore import (qVersion, QT_VERSION, PYQT_VERSION,
PYQT_VERSION_STR)
from pkg_resources import parse_version
if (QT_VERSION < 0x050710 or PYQT_VERSION < 0x050700 or
if (QT_VERSION < 0x050701 or PYQT_VERSION < 0x050700 or
parse_version(qVersion()) < parse_version('5.7.1')):
text = ("Fatal error: Qt >= 5.7.1 and PyQt >= 5.7 are required, "
"but Qt {} / PyQt {} is installed.".format(qt_version(),