eric7/PipInterface/Pip.py

branch
eric7
changeset 8655
e8dd241cbfef
parent 8605
43bd6ec9198f
child 8881
54e42bc2437a
--- a/eric7/PipInterface/Pip.py	Tue Sep 28 18:01:51 2021 +0200
+++ b/eric7/PipInterface/Pip.py	Tue Sep 28 18:03:00 2021 +0200
@@ -298,7 +298,8 @@
         pyqtPackages = [
             p for p in packages if p.lower() in [
                 "pyqt6", "pyqt6-sip", "pyqt6-webengine", "pyqt6-charts",
-                "pyqt6-qscintilla",
+                "pyqt6-qscintilla", "pyqt6-qt6", "pyqt6-webengine-qt6",
+                "pyqt6-charts-qt6"
             ]
         ]
         
@@ -331,10 +332,13 @@
         @return flag indicating a successful execution
         @rtype bool
         """
-        if self.__checkUpgradePyQt(packages):
+        if not venvName:
             return False
         
-        if not venvName:
+        if (
+            self.getVirtualenvInterpreter(venvName) == sys.executable and
+            self.__checkUpgradePyQt(packages)
+        ):
             return False
         
         interpreter = self.getVirtualenvInterpreter(venvName)

eric ide

mercurial