1229 print("sip Version:", sipVersion.strip()) |
1229 print("sip Version:", sipVersion.strip()) |
1230 # always assume, that snapshots or dev versions are new enough |
1230 # always assume, that snapshots or dev versions are new enough |
1231 if "snapshot" not in sipVersion and "dev" not in sipVersion: |
1231 if "snapshot" not in sipVersion and "dev" not in sipVersion: |
1232 while sipVersion.count('.') < 2: |
1232 while sipVersion.count('.') < 2: |
1233 sipVersion += '.0' |
1233 sipVersion += '.0' |
1234 (maj, min, pat) = sipVersion.split('.') |
1234 (major, minor, pat) = sipVersion.split('.') |
1235 maj = int(maj) |
1235 major = int(major) |
1236 min = int(min) |
1236 minor = int(minor) |
1237 pat = int(pat) |
1237 pat = int(pat) |
1238 if maj < 4 or (maj == 4 and min < 14) or \ |
1238 if major < 4 or (major == 4 and minor < 14) or \ |
1239 (maj == 4 and min == 14 and pat < 2): |
1239 (major == 4 and minor == 14 and pat < 2): |
1240 print('Sorry, you must have sip 4.14.2 or higher or' |
1240 print('Sorry, you must have sip 4.14.2 or higher or' |
1241 ' a recent snapshot release.') |
1241 ' a recent snapshot release.') |
1242 exit(3) |
1242 exit(3) |
1243 # check for blacklisted versions |
1243 # check for blacklisted versions |
1244 for vers in BlackLists["sip"] + PlatformBlackLists["sip"]: |
1244 for vers in BlackLists["sip"] + PlatformBlackLists["sip"]: |
1260 print("PyQt Version:", pyqtVersion.strip()) |
1260 print("PyQt Version:", pyqtVersion.strip()) |
1261 # always assume, that snapshots or dev versions are new enough |
1261 # always assume, that snapshots or dev versions are new enough |
1262 if "snapshot" not in pyqtVersion and "dev" not in pyqtVersion: |
1262 if "snapshot" not in pyqtVersion and "dev" not in pyqtVersion: |
1263 while pyqtVersion.count('.') < 2: |
1263 while pyqtVersion.count('.') < 2: |
1264 pyqtVersion += '.0' |
1264 pyqtVersion += '.0' |
1265 (maj, min, pat) = pyqtVersion.split('.') |
1265 (major, minor, pat) = pyqtVersion.split('.') |
1266 maj = int(maj) |
1266 major = int(major) |
1267 min = int(min) |
1267 minor = int(minor) |
1268 pat = int(pat) |
1268 pat = int(pat) |
1269 if maj < 4 or \ |
1269 if major < 4 or \ |
1270 (maj == 4 and min < 10) or \ |
1270 (major == 4 and minor < 10) or \ |
1271 (maj == 5 and min < 3): |
1271 (major == 5 and minor < 3): |
1272 print('Sorry, you must have PyQt 4.10.0 or better or') |
1272 print('Sorry, you must have PyQt 4.10.0 or better or') |
1273 print('PyQt 5.3.0 or better or' |
1273 print('PyQt 5.3.0 or better or' |
1274 ' a recent snapshot release.') |
1274 ' a recent snapshot release.') |
1275 exit(4) |
1275 exit(4) |
1276 # check for blacklisted versions |
1276 # check for blacklisted versions |
1290 print("QScintilla Version:", QSCINTILLA_VERSION_STR.strip()) |
1290 print("QScintilla Version:", QSCINTILLA_VERSION_STR.strip()) |
1291 # always assume, that snapshots or dev versions are new enough |
1291 # always assume, that snapshots or dev versions are new enough |
1292 if "snapshot" not in scintillaVersion and "dev" not in scintillaVersion: |
1292 if "snapshot" not in scintillaVersion and "dev" not in scintillaVersion: |
1293 while scintillaVersion.count('.') < 2: |
1293 while scintillaVersion.count('.') < 2: |
1294 scintillaVersion += '.0' |
1294 scintillaVersion += '.0' |
1295 (maj, min, pat) = scintillaVersion.split('.') |
1295 (major, minor, pat) = scintillaVersion.split('.') |
1296 maj = int(maj) |
1296 major = int(major) |
1297 min = int(min) |
1297 minor = int(minor) |
1298 pat = int(pat) |
1298 pat = int(pat) |
1299 if maj < 2 or (maj == 2 and min < 8): |
1299 if major < 2 or (major == 2 and minor < 8): |
1300 print('Sorry, you must have QScintilla 2.8.0 or higher or' |
1300 print('Sorry, you must have QScintilla 2.8.0 or higher or' |
1301 ' a recent snapshot release.') |
1301 ' a recent snapshot release.') |
1302 exit(5) |
1302 exit(5) |
1303 # check for blacklisted versions |
1303 # check for blacklisted versions |
1304 for vers in BlackLists["QScintilla2"] + \ |
1304 for vers in BlackLists["QScintilla2"] + \ |