src/eric7/PluginManager/PluginInstallDialog.py

branch
eric7
changeset 10749
e2d08e26ab3f
parent 10439
21c28b0f9e41
child 10933
95a15b70f7bb
--- a/src/eric7/PluginManager/PluginInstallDialog.py	Fri Jun 07 11:11:57 2024 +0200
+++ b/src/eric7/PluginManager/PluginInstallDialog.py	Fri Jun 07 11:45:49 2024 +0200
@@ -344,6 +344,7 @@
         needsRestart = False
         pyqtApi = 0
         doCompile = True
+        doCompileForms = True
 
         separator = "="  # initialize for old-style header
         insideHeader = False
@@ -386,6 +387,8 @@
                         pyqtApi = int(value)
                 elif key == "doNotCompile" and value == "True":
                     doCompile = False
+                elif key == "hasCompiledForms" and value == "True":
+                    doCompileForms = False
 
         if not packageName:
             return (
@@ -497,8 +500,10 @@
                                 f.write(zipFile.read(name))
                             self.__installedFiles.append(outname)
                 self.progress.setValue(tot)
-                # now compile user interface files
-                compileUiFiles(os.path.join(destination, packageName), True)
+
+                if doCompileForms:
+                    # now compile user interface files
+                    compileUiFiles(os.path.join(destination, packageName), True)
             else:
                 outname = os.path.join(destination, pluginFileName)
                 with open(outname, "w", encoding="utf-8") as f:

eric ide

mercurial