213 self.__createProgramEntry( |
213 self.__createProgramEntry( |
214 self.tr("Resource Compiler (Ruby, Qt4)"), |
214 self.tr("Resource Compiler (Ruby, Qt4)"), |
215 Utilities.isWindowsPlatform() and "rbrcc.exe" or "rbrcc", |
215 Utilities.isWindowsPlatform() and "rbrcc.exe" or "rbrcc", |
216 '-version', 'Ruby Resource Compiler', -1) |
216 '-version', 'Ruby Resource Compiler', -1) |
217 |
217 |
218 # 5. do the CORBA and Protobuf programs |
218 # 5. do the Conda program(s) |
219 # 5a. omniORB |
219 exe = Preferences.getConda("CondaExecutable") |
|
220 if not exe: |
|
221 exe = "conda" |
|
222 if Utilities.isWindowsPlatform(): |
|
223 exe += ".exe" |
|
224 self.__createProgramEntry( |
|
225 self.tr("conda Manager"), exe, '--version', 'conda', -1) |
|
226 |
|
227 # 6. do the pip program(s) |
|
228 virtualenvManager = e5App().getObject("VirtualEnvManager") |
|
229 for venvName in virtualenvManager.getVirtualenvNames(): |
|
230 interpreter = virtualenvManager.getVirtualenvInterpreter(venvName) |
|
231 self.__createProgramEntry( |
|
232 self.tr("PyPI Package Management"), interpreter, '--version', |
|
233 'pip', 1, exeModule=["-m", "pip"]) |
|
234 |
|
235 # 7. do the CORBA and Protobuf programs |
|
236 # 7a. omniORB |
220 exe = Preferences.getCorba("omniidl") |
237 exe = Preferences.getCorba("omniidl") |
221 if not exe: |
238 if not exe: |
222 exe = "omniidl" |
239 exe = "omniidl" |
223 if Utilities.isWindowsPlatform(): |
240 if Utilities.isWindowsPlatform(): |
224 exe += ".exe" |
241 exe += ".exe" |
225 self.__createProgramEntry( |
242 self.__createProgramEntry( |
226 self.tr("CORBA IDL Compiler"), exe, '-V', 'omniidl', -1) |
243 self.tr("CORBA IDL Compiler"), exe, '-V', 'omniidl', -1) |
227 # 5b. protobuf |
244 # 7b. protobuf |
228 exe = Preferences.getProtobuf("protoc") |
245 exe = Preferences.getProtobuf("protoc") |
229 if not exe: |
246 if not exe: |
230 exe = "protoc" |
247 exe = "protoc" |
231 if Utilities.isWindowsPlatform(): |
248 if Utilities.isWindowsPlatform(): |
232 exe += ".exe" |
249 exe += ".exe" |
233 self.__createProgramEntry( |
250 self.__createProgramEntry( |
234 self.tr("Protobuf Compiler"), exe, '--version', 'libprotoc', -1) |
251 self.tr("Protobuf Compiler"), exe, '--version', 'libprotoc', -1) |
235 # 5c. grpc |
252 # 7c. grpc |
236 exe = Preferences.getProtobuf("grpcPython") |
253 exe = Preferences.getProtobuf("grpcPython") |
237 if not exe: |
254 if not exe: |
238 exe = sys.executable |
255 exe = sys.executable |
239 self.__createProgramEntry( |
256 self.__createProgramEntry( |
240 self.tr("gRPC Compiler"), exe, '--version', 'libprotoc', -1, |
257 self.tr("gRPC Compiler"), exe, '--version', 'libprotoc', -1, |
241 exeModule=['-m', 'grpc_tools.protoc']) |
258 exeModule=['-m', 'grpc_tools.protoc']) |
242 |
259 |
243 # 6. do the spell checking entry |
260 # 8. do the spell checking entry |
244 try: |
261 try: |
245 import enchant |
262 import enchant |
246 try: |
263 try: |
247 text = os.path.dirname(enchant.__file__) |
264 text = os.path.dirname(enchant.__file__) |
248 except AttributeError: |
265 except AttributeError: |
272 text = "pygments" |
289 text = "pygments" |
273 version = "" |
290 version = "" |
274 self.__createEntry( |
291 self.__createEntry( |
275 self.tr("Source Highlighter - Pygments"), text, version) |
292 self.tr("Source Highlighter - Pygments"), text, version) |
276 |
293 |
277 # do the plugin related programs |
294 # 10. do the plugin related programs |
278 pm = e5App().getObject("PluginManager") |
295 pm = e5App().getObject("PluginManager") |
279 for info in pm.getPluginExeDisplayData(): |
296 for info in pm.getPluginExeDisplayData(): |
280 if info["programEntry"]: |
297 if info["programEntry"]: |
281 if "exeModule" not in info: |
298 if "exeModule" not in info: |
282 info["exeModule"] = None |
299 info["exeModule"] = None |