263 ), |
263 ), |
264 ) |
264 ) |
265 |
265 |
266 return interpreter |
266 return interpreter |
267 |
267 |
268 def getVirtualenvNames( |
268 def getVirtualenvNames(self, noGlobals=False, filterList=("all",)): |
269 self, noRemote=False, noConda=False, noGlobals=False, noServer=False |
|
270 ): |
|
271 """ |
269 """ |
272 Public method to get a sorted list of virtual environment names. |
270 Public method to get a sorted list of virtual environment names. |
273 |
271 |
274 @param noRemote flag indicating to exclude environments for remote |
|
275 debugging (defaults to False) |
|
276 @type bool (optional) |
|
277 @param noConda flag indicating to exclude Conda environments (defaults to False) |
|
278 @type bool (optional) |
|
279 @param noGlobals flag indicating to exclude global environments |
272 @param noGlobals flag indicating to exclude global environments |
280 (defaults to False) |
273 (defaults to False) |
281 @type bool (optional) |
274 @type bool (optional) |
282 @param noServer flag indicating to exclued eric-ide server environments |
275 @param filterList tuple containing the list of virtual environment types to |
283 (defaults to False) |
276 be included (prefixed by +) or excluded (prefixed by -) (defaults to |
284 @type bool (optional) |
277 ("all",) ) |
|
278 @type tuple of str ((optional) |
285 @return sorted list of virtual environment names |
279 @return sorted list of virtual environment names |
286 @rtype list of str |
280 @rtype list of str |
287 """ |
281 """ |
288 return sorted( |
282 return sorted( |
289 ericApp() |
283 ericApp() |
290 .getObject("VirtualEnvManager") |
284 .getObject("VirtualEnvManager") |
291 .getVirtualenvNames( |
285 .getVirtualenvNames(noGlobals=noGlobals, filterList=filterList) |
292 noRemote=noRemote, |
|
293 noConda=noConda, |
|
294 noGlobals=noGlobals, |
|
295 noServer=noServer, |
|
296 ) |
|
297 ) |
286 ) |
298 |
287 |
299 def installPip(self, venvName, userSite=False): |
288 def installPip(self, venvName, userSite=False): |
300 """ |
289 """ |
301 Public method to install pip. |
290 Public method to install pip. |