install.py

changeset 620
f544fadde423
parent 615
c8dd16cc69ce
child 622
54c2a58acef4
equal deleted inserted replaced
619:52f88b8fe8b2 620:f544fadde423
833 print("\nInstalling eric5 ...") 833 print("\nInstalling eric5 ...")
834 installEric() 834 installEric()
835 print("\nInstallation complete.") 835 print("\nInstallation complete.")
836 print() 836 print()
837 837
838 #check version of PyQt
839 from PyQt4.QtCore import PYQT_VERSION_STR
840 pyqtVersion = PYQT_VERSION_STR
841 # always assume, that snapshots are new enough
842 if pyqtVersion.find("snapshot-") == -1:
843 while pyqtVersion.count('.') < 2:
844 pyqtVersion += '.0'
845 (maj, min, pat) = pyqtVersion.split('.')
846 maj = int(maj)
847 min = int(min)
848 pat = int(pat)
849 if min < 5:
850 print()
851 print("You have to patch PyQt QNetworkAccessManager.")
852 print("See the patches directory for details.")
853
854 print()
855 exit() 838 exit()
856 839
857 840
858 if __name__ == "__main__": 841 if __name__ == "__main__":
859 try: 842 try:

eric ide

mercurial