scripts/install.py

branch
eric7
changeset 8343
242d5dae2937
parent 8339
75908476226e
child 8354
12ebd3934fef
equal deleted inserted replaced
8342:0613a64f1b64 8343:242d5dae2937
1500 if isSudo: 1500 if isSudo:
1501 print("Optional 'PyQt6-Charts' could not be detected.") 1501 print("Optional 'PyQt6-Charts' could not be detected.")
1502 else: 1502 else:
1503 pipInstall( 1503 pipInstall(
1504 "PyQt6-Charts>=6.1.0", 1504 "PyQt6-Charts>=6.1.0",
1505 "Optional 'PyQtChart' could not be detected.\n" 1505 "Optional 'PyQt6-Charts' could not be detected.\n"
1506 "Error: {0}".format(msg) 1506 "Error: {0}".format(msg)
1507 ) 1507 )
1508 print("Found PyQt6-Charts")
1508 1509
1509 try: 1510 try:
1510 from PyQt6 import Qsci # __IGNORE_WARNING__ 1511 from PyQt6 import Qsci # __IGNORE_WARNING__
1511 except ImportError as msg: 1512 except ImportError as msg:
1512 installed = not isSudo and pipInstall( 1513 installed = not isSudo and pipInstall(
1712 ' eric.'.format(vers)) 1713 ' eric.'.format(vers))
1713 print('Please install another version.') 1714 print('Please install another version.')
1714 exit(5) 1715 exit(5)
1715 1716
1716 # print version info for additional modules 1717 # print version info for additional modules
1718 # TODO: add info about QtSerialPort once PyQt 6.2.0/Qt 6.2.0 is released
1719 # (only if that is a separate package)
1717 with contextlib.suppress(NameError, AttributeError): 1720 with contextlib.suppress(NameError, AttributeError):
1718 print("PyQt6-Chart:", QtCharts.PYQT_CHART_VERSION_STR) 1721 print("PyQt6-Charts:", QtCharts.PYQT_CHART_VERSION_STR)
1719 1722
1720 with contextlib.suppress(ImportError, AttributeError): 1723 with contextlib.suppress(ImportError, AttributeError):
1721 from PyQt6 import QtWebEngine 1724 from PyQt6 import QtWebEngine
1722 print("PyQt6-WebEngine.", QtWebEngine.PYQT_WEBENGINE_VERSION_STR) 1725 print("PyQt6-WebEngine.", QtWebEngine.PYQT_WEBENGINE_VERSION_STR)
1723 1726

eric ide

mercurial