833 pyqtVersion += '.0' |
833 pyqtVersion += '.0' |
834 (maj, min, pat) = pyqtVersion.split('.') |
834 (maj, min, pat) = pyqtVersion.split('.') |
835 maj = int(maj) |
835 maj = int(maj) |
836 min = int(min) |
836 min = int(min) |
837 pat = int(pat) |
837 pat = int(pat) |
838 if maj < 4 or (maj == 4 and min < 7): |
838 if maj < 4 or (maj == 4 and min < 8): |
839 print('Sorry, you must have PyQt 4.7.0 or higher or' \ |
839 print('Sorry, you must have PyQt 4.8.0 or higher or' \ |
840 ' a recent snapshot release.') |
840 ' a recent snapshot release.') |
841 exit(4) |
841 exit(4) |
842 # check for blacklisted versions |
842 # check for blacklisted versions |
843 for vers in BlackLists["PyQt4"] + PlatformBlackLists["PyQt4"]: |
843 for vers in BlackLists["PyQt4"] + PlatformBlackLists["PyQt4"]: |
844 if vers == pyqtVersion: |
844 if vers == pyqtVersion: |
857 scintillaVersion += '.0' |
857 scintillaVersion += '.0' |
858 (maj, min, pat) = scintillaVersion.split('.') |
858 (maj, min, pat) = scintillaVersion.split('.') |
859 maj = int(maj) |
859 maj = int(maj) |
860 min = int(min) |
860 min = int(min) |
861 pat = int(pat) |
861 pat = int(pat) |
862 if maj < 2 or (maj == 2 and min < 4): |
862 if maj < 2 or (maj == 2 and min < 6): |
863 print('Sorry, you must have QScintilla 2.4.0 or higher or' \ |
863 print('Sorry, you must have QScintilla 2.6.0 or higher or' \ |
864 ' a recent snapshot release.') |
864 ' a recent snapshot release.') |
865 exit(5) |
865 exit(5) |
866 # check for blacklisted versions |
866 # check for blacklisted versions |
867 for vers in BlackLists["QScintilla2"] + PlatformBlackLists["QScintilla2"]: |
867 for vers in BlackLists["QScintilla2"] + PlatformBlackLists["QScintilla2"]: |
868 if vers == scintillaVersion: |
868 if vers == scintillaVersion: |