src/eric7/PipInterface/Pip.py

branch
server
changeset 10766
d35d6f96c24b
parent 10742
7aa41173b44b
child 10799
7f5228900da5
equal deleted inserted replaced
10765:b0632e55ec9a 10766:d35d6f96c24b
243 ), 243 ),
244 ) 244 )
245 245
246 return interpreter 246 return interpreter
247 247
248 def getVirtualenvNames(self, noRemote=False, noConda=False, noGlobals=False): 248 def getVirtualenvNames(
249 self, noRemote=False, noConda=False, noGlobals=False, noServer=False
250 ):
249 """ 251 """
250 Public method to get a sorted list of virtual environment names. 252 Public method to get a sorted list of virtual environment names.
251 253
252 @param noRemote flag indicating to exclude environments for remote 254 @param noRemote flag indicating to exclude environments for remote
253 debugging (defaults to False) 255 debugging (defaults to False)
255 @param noConda flag indicating to exclude Conda environments (defaults to False) 257 @param noConda flag indicating to exclude Conda environments (defaults to False)
256 @type bool (optional) 258 @type bool (optional)
257 @param noGlobals flag indicating to exclude global environments 259 @param noGlobals flag indicating to exclude global environments
258 (defaults to False) 260 (defaults to False)
259 @type bool (optional) 261 @type bool (optional)
262 @param noServer flag indicating to exclued eric-ide server environments
263 (defaults to False)
264 @type bool (optional)
260 @return sorted list of virtual environment names 265 @return sorted list of virtual environment names
261 @rtype list of str 266 @rtype list of str
262 """ 267 """
263 return sorted( 268 return sorted(
264 ericApp() 269 ericApp()
265 .getObject("VirtualEnvManager") 270 .getObject("VirtualEnvManager")
266 .getVirtualenvNames(noRemote=noRemote, noConda=noConda, noGlobals=noGlobals) 271 .getVirtualenvNames(
272 noRemote=noRemote,
273 noConda=noConda,
274 noGlobals=noGlobals,
275 noServer=noServer,
276 )
267 ) 277 )
268 278
269 def installPip(self, venvName, userSite=False): 279 def installPip(self, venvName, userSite=False):
270 """ 280 """
271 Public method to install pip. 281 Public method to install pip.

eric ide

mercurial