VirtualEnv/VirtualenvConfigurationDialog.py

branch
conda
changeset 6684
37e280d711af
parent 6681
9c1513b488ef
child 6697
2f5c951bdf14
equal deleted inserted replaced
6683:aca9d39fbfbd 6684:37e280d711af
486 containing the environment type (virtualenv, pyvenv or conda). The 486 containing the environment type (virtualenv, pyvenv or conda). The
487 virtualenv/pyvenv specific keys are 'openTarget' containg a flag to 487 virtualenv/pyvenv specific keys are 'openTarget' containg a flag to
488 open the target directory after creation, 'createLog' containing a 488 open the target directory after creation, 'createLog' containing a
489 flag to write a log file, 'createScript' containing a flag to write 489 flag to write a log file, 'createScript' containing a flag to write
490 a script, 'targetDirectory' containing the target directory and 490 a script, 'targetDirectory' containing the target directory and
491 'pythonExe' containing the Python interpreter to be used. There are 491 'pythonExe' containing the Python interpreter to be used. The
492 no conda specific keys. 492 conda specific key is 'command' giving the conda command to be
493 executed (always 'create').
493 @rtype dict 494 @rtype dict
494 """ 495 """
495 # TODO: add the conda keys to the above description
496 # TODO: change to returning a method specific dictionary
497 args = self.__generateArguments() 496 args = self.__generateArguments()
498 resultDict = { 497 resultDict = {
499 "arguments": args, 498 "arguments": args,
500 "logicalName": self.nameEdit.text(), 499 "logicalName": self.nameEdit.text(),
501 } 500 }
502 if self.condaButton.isChecked(): 501 if self.condaButton.isChecked():
503 resultDict.update({ 502 resultDict.update({
504 "envType": "conda", 503 "envType": "conda",
504 "command": "create",
505 }) 505 })
506 else: 506 else:
507 resultDict.update({ 507 resultDict.update({
508 "envType": ("pyvenv" if self.pyvenvButton.isChecked() else 508 "envType": ("pyvenv" if self.pyvenvButton.isChecked() else
509 "virtualenv"), 509 "virtualenv"),

eric ide

mercurial