Made the PyQt6-WebEngine package really optional in the install script. eric7

Tue, 28 Sep 2021 18:01:51 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 28 Sep 2021 18:01:51 +0200
branch
eric7
changeset 8654
7244c30032d8
parent 8653
43d556326ded
child 8655
e8dd241cbfef

Made the PyQt6-WebEngine package really optional in the install script.

scripts/install.py file | annotate | diff | comparison | revisions
--- a/scripts/install.py	Mon Sep 27 16:50:50 2021 +0200
+++ b/scripts/install.py	Tue Sep 28 18:01:51 2021 +0200
@@ -1426,7 +1426,7 @@
     requiredVersions = {
         "pyqt6": 0x60101,
         "pyqt6-charts": 0x60101,
-        #"pyqt6-webengine": 0x60200,
+        "pyqt6-webengine": 0x60200,
         "pyqt6-qscintilla": 0x20d00,
         "sip": 0x60100,
     }
@@ -1493,11 +1493,13 @@
         if isSudo:
             print("Optional 'PyQt6-WebEngine' could not be detected.")
         else:
+            # TODO: should PyQt6-WebEngine be a must requirement?
             pipInstall(
-                "PyQt6-WebEngine>={0}".format(
+               "PyQt6-WebEngine>={0}".format(
                     versionToStr(requiredVersions["pyqt6-webengine"])),
                 "Optional 'PyQt6-WebEngine' could not be detected.\n"
-                "Error: {0}".format(msg)
+                "Error: {0}".format(msg),
+                force=False
             )
     
     try:

eric ide

mercurial