scripts/install.py

changeset 7723
8a33a532fbe9
parent 7717
f32d7965a17e
child 7737
5371a22cf2aa
child 7740
330a43a4db79
equal deleted inserted replaced
7722:db3a6d341913 7723:8a33a532fbe9
1399 try: 1399 try:
1400 from PyQt5.QtCore import qVersion 1400 from PyQt5.QtCore import qVersion
1401 except ImportError as msg: 1401 except ImportError as msg:
1402 installed = pipInstall( 1402 installed = pipInstall(
1403 "PyQt5", 1403 "PyQt5",
1404 "PyQt5 could not be detected.\nError: {0}".format(msg) 1404 "'PyQt5' could not be detected.\nError: {0}".format(msg)
1405 ) 1405 )
1406 if installed: 1406 if installed:
1407 # try to import it again 1407 # try to import it again
1408 try: 1408 try:
1409 from PyQt5.QtCore import qVersion 1409 from PyQt5.QtCore import qVersion
1432 from PyQt5.QtCore import PYQT_VERSION 1432 from PyQt5.QtCore import PYQT_VERSION
1433 if PYQT_VERSION >= 0x050c00: 1433 if PYQT_VERSION >= 0x050c00:
1434 # PyQt 5.12 separated QtWebEngine into a separate wheel 1434 # PyQt 5.12 separated QtWebEngine into a separate wheel
1435 installed = pipInstall( 1435 installed = pipInstall(
1436 "PyQtWebEngine", 1436 "PyQtWebEngine",
1437 "PyQtWebEngine could not be detected.\nError: {0}" 1437 "Optional 'PyQtWebEngine' could not be detected.\nError: {0}"
1438 .format(msg) 1438 .format(msg)
1439 ) 1439 )
1440 1440
1441 try: 1441 try:
1442 from PyQt5 import QtChart # __IGNORE_WARNING__ 1442 from PyQt5 import QtChart # __IGNORE_WARNING__
1443 except ImportError as msg: 1443 except ImportError as msg:
1444 installed = pipInstall( 1444 installed = pipInstall(
1445 "PyQtChart", 1445 "PyQtChart",
1446 "PyQtChart could not be detected.\nError: {0}" 1446 "Optional 'PyQtChart' could not be detected.\nError: {0}"
1447 .format(msg) 1447 .format(msg)
1448 ) 1448 )
1449 1449
1450 try: 1450 try:
1451 from PyQt5 import Qsci # __IGNORE_WARNING__ 1451 from PyQt5 import Qsci # __IGNORE_WARNING__
1452 except ImportError as msg: 1452 except ImportError as msg:
1453 installed = pipInstall( 1453 installed = pipInstall(
1454 "QScintilla", 1454 "QScintilla",
1455 "QScintilla could not be detected.\nError: {0}".format(msg) 1455 "'QScintilla' could not be detected.\nError: {0}".format(msg)
1456 ) 1456 )
1457 if installed: 1457 if installed:
1458 # try to import it again 1458 # try to import it again
1459 try: 1459 try:
1460 from PyQt5 import Qsci # __IGNORE_WARNING__ 1460 from PyQt5 import Qsci # __IGNORE_WARNING__

eric ide

mercurial