install.py: added check for and installation of PyQtChart in order to support MicroPython.

Fri, 30 Aug 2019 19:00:38 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 30 Aug 2019 19:00:38 +0200
changeset 7185
af8e89a7a51d
parent 7184
34752db00ee9
child 7186
ccd55666e9d2

install.py: added check for and installation of PyQtChart in order to support MicroPython.

scripts/install.py file | annotate | diff | comparison | revisions
diff -r 34752db00ee9 -r af8e89a7a51d scripts/install.py
--- a/scripts/install.py	Fri Aug 30 18:56:45 2019 +0200
+++ b/scripts/install.py	Fri Aug 30 19:00:38 2019 +0200
@@ -1531,6 +1531,15 @@
                     "PyQtWebEngine could not be detected.\nError: {0}"
                     .format(msg)
                 )
+        
+        try:
+            from PyQt5 import QtChart    # __IGNORE_WARNING__
+        except ImportError as msg:
+            installed = pipInstall(
+                "PyQtChart",
+                "PyQtChart could not be detected.\nError: {0}"
+                .format(msg)
+            )
     
     try:
         if pyqtVariant == "PyQt4":

eric ide

mercurial