1569 qtMajor = int(qVersion().split('.')[0]) |
1569 qtMajor = int(qVersion().split('.')[0]) |
1570 qtMinor = int(qVersion().split('.')[1]) |
1570 qtMinor = int(qVersion().split('.')[1]) |
1571 print("Qt Version: {0}".format(qVersion().strip())) |
1571 print("Qt Version: {0}".format(qVersion().strip())) |
1572 if qtMajor < 4 or \ |
1572 if qtMajor < 4 or \ |
1573 (qtMajor == 4 and qtMinor < 8) or \ |
1573 (qtMajor == 4 and qtMinor < 8) or \ |
1574 (qtMajor == 5 and qtMinor < 3): |
1574 (qtMajor == 5 and qtMinor < 6): |
1575 print('Sorry, you must have Qt version 4.8.0 or better or') |
1575 print('Sorry, you must have Qt version 4.8.0 or better or') |
1576 print('5.3.0 or better.') |
1576 print('5.6.0 or better.') |
1577 exit(2) |
1577 exit(2) |
1578 |
1578 |
1579 # check version of sip |
1579 # check version of sip |
1580 try: |
1580 try: |
1581 try: |
1581 try: |
1625 pat = int(pat) |
1625 pat = int(pat) |
1626 if major < 4 or \ |
1626 if major < 4 or \ |
1627 (major == 4 and minor < 10) or \ |
1627 (major == 4 and minor < 10) or \ |
1628 (major == 5 and minor < 3): |
1628 (major == 5 and minor < 3): |
1629 print('Sorry, you must have PyQt 4.10.0 or better or') |
1629 print('Sorry, you must have PyQt 4.10.0 or better or') |
1630 print('PyQt 5.3.0 or better or' |
1630 print('PyQt 5.6.0 or better or' |
1631 ' a recent snapshot release.') |
1631 ' a recent snapshot release.') |
1632 exit(4) |
1632 exit(4) |
1633 # check for blacklisted versions |
1633 # check for blacklisted versions |
1634 for vers in BlackLists[pyqtVariant] + PlatformBlackLists[pyqtVariant]: |
1634 for vers in BlackLists[pyqtVariant] + PlatformBlackLists[pyqtVariant]: |
1635 if vers == pyqtVersion: |
1635 if vers == pyqtVersion: |