52 PythonUtilities, |
52 PythonUtilities, |
53 QtUtilities, |
53 QtUtilities, |
54 ) |
54 ) |
55 from eric7.Tasks.TasksFile import TasksFile |
55 from eric7.Tasks.TasksFile import TasksFile |
56 from eric7.UI.NotificationWidget import NotificationTypes |
56 from eric7.UI.NotificationWidget import NotificationTypes |
|
57 from eric7.Utilities.uic import compileOneUi |
57 from eric7.VCS.VersionControl import VersionControlState |
58 from eric7.VCS.VersionControl import VersionControlState |
58 |
59 |
59 from .DebuggerPropertiesFile import DebuggerPropertiesFile |
60 from .DebuggerPropertiesFile import DebuggerPropertiesFile |
60 from .FileCategoryRepositoryItem import FileCategoryRepositoryItem |
61 from .FileCategoryRepositoryItem import FileCategoryRepositoryItem |
61 from .ProjectBrowserModel import ProjectBrowserModel |
62 from .ProjectBrowserModel import ProjectBrowserModel |
7155 ).format(archive, str(why)), |
7156 ).format(archive, str(why)), |
7156 ) |
7157 ) |
7157 errors += 1 |
7158 errors += 1 |
7158 continue |
7159 continue |
7159 |
7160 |
|
7161 # recompile all included compiled forms |
|
7162 for name in names: |
|
7163 nameList = os.path.split(name) |
|
7164 if nameList[1].startswith("Ui_") and nameList[1].endswith(".py"): |
|
7165 # It is a compiled form file. |
|
7166 formPath = os.path.join( |
|
7167 nameList[0], |
|
7168 nameList[1].replace("Ui_", "").replace(".py", ".ui"), |
|
7169 ) |
|
7170 compileOneUi( |
|
7171 os.path.join(self.ppath, formPath), uiheadername=formPath |
|
7172 ) |
|
7173 |
|
7174 # create the plugin archive |
7160 for name in names: |
7175 for name in names: |
7161 if name: |
7176 if name: |
7162 try: |
7177 try: |
7163 self.__createZipDirEntries(os.path.split(name)[0], archiveFile) |
7178 self.__createZipDirEntries(os.path.split(name)[0], archiveFile) |
7164 if snapshot and name == self.__pdata["MAINSCRIPT"]: |
7179 if snapshot and name == self.__pdata["MAINSCRIPT"]: |