install.py

changeset 6208
76445467adf8
parent 6048
82ad8ec9548c
child 6211
4f0e08c95ca9
equal deleted inserted replaced
6200:89f2dc1bcfcd 6208:76445467adf8
1162 print("Found PyQt4") 1162 print("Found PyQt4")
1163 else: 1163 else:
1164 try: 1164 try:
1165 from PyQt5.QtCore import qVersion 1165 from PyQt5.QtCore import qVersion
1166 except ImportError as msg: 1166 except ImportError as msg:
1167 # TODO: install PyQt5 via pip upon request
1167 print('Sorry, please install PyQt5.') 1168 print('Sorry, please install PyQt5.')
1168 print('Error: {0}'.format(msg)) 1169 print('Error: {0}'.format(msg))
1169 exit(1) 1170 exit(1)
1170 print("Found PyQt5") 1171 print("Found PyQt5")
1171 1172
1186 if pyqtVariant == "PyQt4": 1187 if pyqtVariant == "PyQt4":
1187 from PyQt4 import Qsci # __IGNORE_WARNING__ 1188 from PyQt4 import Qsci # __IGNORE_WARNING__
1188 else: 1189 else:
1189 from PyQt5 import Qsci # __IGNORE_WARNING__ 1190 from PyQt5 import Qsci # __IGNORE_WARNING__
1190 except ImportError as msg: 1191 except ImportError as msg:
1192 # TODO: install QScintilla2 via pip upon request (PyQt5 only)
1191 print("Sorry, please install QScintilla2 and") 1193 print("Sorry, please install QScintilla2 and")
1192 print("its PyQt5/PyQt4 wrapper.") 1194 print("its PyQt5/PyQt4 wrapper.")
1193 print('Error: {0}'.format(msg)) 1195 print('Error: {0}'.format(msg))
1194 exit(1) 1196 exit(1)
1195 print("Found QScintilla2") 1197 print("Found QScintilla2")

eric ide

mercurial