install.py

changeset 3681
3a79355b9ca5
parent 3678
2866383fd342
child 3693
983904b9568f
equal deleted inserted replaced
3678:2866383fd342 3681:3a79355b9ca5
941 print("its PyQt5 wrapper.") 941 print("its PyQt5 wrapper.")
942 print('Error: {0}'.format(msg)) 942 print('Error: {0}'.format(msg))
943 exit(1) 943 exit(1)
944 print("Found QScintilla2") 944 print("Found QScintilla2")
945 945
946 modulesOK = True
946 for impModule in [ 947 for impModule in [
947 "PyQt5.QtGui", "PyQt5.QtNetwork", "PyQt4.QtPrintSupport", 948 "PyQt5.QtGui", "PyQt5.QtNetwork", "PyQt5.QtPrintSupport",
948 "PyQt5.QtSql", "PyQt5.QtSvg", "PyQt5.QtWebKit", 949 "PyQt5.QtSql", "PyQt5.QtSvg", "PyQt5.QtWebKit",
949 "PyQt5.QtWebKitWidgets", "PyQt5.QtWidgets", 950 "PyQt5.QtWebKitWidgets", "PyQt5.QtWidgets",
950 951
951 ]: 952 ]:
952 name = impModule.split(".")[1] 953 name = impModule.split(".")[1]
953 modulesOK = True
954 try: 954 try:
955 __import__(impModule) 955 __import__(impModule)
956 print("Found", name) 956 print("Found", name)
957 except ImportError as msg: 957 except ImportError as msg:
958 print('Sorry, please install {0}.'.format(name)) 958 print('Sorry, please install {0}.'.format(name))

eric ide

mercurial