566 if qtMajor < 4 or (qtMajor == 4 and qtMinor < 5): |
573 if qtMajor < 4 or (qtMajor == 4 and qtMinor < 5): |
567 print('Sorry, you must have Qt version 4.5.0 or higher.') |
574 print('Sorry, you must have Qt version 4.5.0 or higher.') |
568 exit(2) |
575 exit(2) |
569 print("Qt Version: %s" % qVersion()) |
576 print("Qt Version: %s" % qVersion()) |
570 |
577 |
|
578 # check version of sip |
|
579 try: |
|
580 import sipconfig |
|
581 sipVersion = sipconfig.Configuration().sip_version_str |
|
582 # always assume, that snapshots are new enough |
|
583 if "snapshot" not in sipVersion: |
|
584 # check for blacklisted versions |
|
585 for vers in BlackLists["sip"]: |
|
586 if vers == sipVersion: |
|
587 print('Sorry, sip version {0} is not compatible with eric5.'\ |
|
588 .format(vers)) |
|
589 print('Please install another version.') |
|
590 exit(3) |
|
591 except ImportError: |
|
592 pass |
|
593 |
571 #check version of PyQt |
594 #check version of PyQt |
572 from PyQt4.QtCore import PYQT_VERSION_STR |
595 from PyQt4.QtCore import PYQT_VERSION_STR |
573 pyqtVersion = PYQT_VERSION_STR |
596 pyqtVersion = PYQT_VERSION_STR |
574 # always assume, that snapshots are new enough |
597 # always assume, that snapshots are new enough |
575 if "snapshot" not in pyqtVersion: |
598 if "snapshot" not in pyqtVersion: |
580 min = int(min) |
603 min = int(min) |
581 pat = int(pat) |
604 pat = int(pat) |
582 if maj < 4 or (maj == 4 and min < 7): |
605 if maj < 4 or (maj == 4 and min < 7): |
583 print('Sorry, you must have PyQt 4.7.0 or higher or' \ |
606 print('Sorry, you must have PyQt 4.7.0 or higher or' \ |
584 ' a recent snapshot release.') |
607 ' a recent snapshot release.') |
585 exit(3) |
608 exit(4) |
|
609 # check for blacklisted versions |
|
610 for vers in BlackLists["PyQt4"]: |
|
611 if vers == pyqtVersion: |
|
612 print('Sorry, PyQt4 version {0} is not compatible with eric5.'\ |
|
613 .format(vers)) |
|
614 print('Please install another version.') |
|
615 exit(4) |
586 print("PyQt Version: ", pyqtVersion) |
616 print("PyQt Version: ", pyqtVersion) |
587 |
617 |
588 #check version of QScintilla |
618 #check version of QScintilla |
589 from PyQt4.Qsci import QSCINTILLA_VERSION_STR |
619 from PyQt4.Qsci import QSCINTILLA_VERSION_STR |
590 scintillaVersion = QSCINTILLA_VERSION_STR |
620 scintillaVersion = QSCINTILLA_VERSION_STR |
597 min = int(min) |
627 min = int(min) |
598 pat = int(pat) |
628 pat = int(pat) |
599 if maj < 2 or (maj == 2 and min < 4): |
629 if maj < 2 or (maj == 2 and min < 4): |
600 print('Sorry, you must have QScintilla 2.4.0 or higher or' \ |
630 print('Sorry, you must have QScintilla 2.4.0 or higher or' \ |
601 ' a recent snapshot release.') |
631 ' a recent snapshot release.') |
602 exit(4) |
632 exit(5) |
|
633 # check for blacklisted versions |
|
634 for vers in BlackLists["QScintilla2"]: |
|
635 if vers == scintillaVersion: |
|
636 print('Sorry, QScintilla2 version {0} is not compatible with eric5.'\ |
|
637 .format(vers)) |
|
638 print('Please install another version.') |
|
639 exit(5) |
603 print("QScintilla Version: ", QSCINTILLA_VERSION_STR) |
640 print("QScintilla Version: ", QSCINTILLA_VERSION_STR) |
604 print("All dependencies ok.") |
641 print("All dependencies ok.") |
605 print() |
642 print() |
606 |
643 |
607 def compileUiFiles(): |
644 def compileUiFiles(): |