415 @return process arguments |
415 @return process arguments |
416 @rtype list of str |
416 @rtype list of str |
417 """ |
417 """ |
418 args = [] |
418 args = [] |
419 if self.condaButton.isChecked(): |
419 if self.condaButton.isChecked(): |
420 # TODO: assemble the conda arguments |
420 args.extend(["create", "--json", "--yes"]) |
421 pass |
421 if bool(self.condaNameEdit.text()): |
|
422 args.extend(["--name", self.condaNameEdit.text()]) |
|
423 if bool(self.condaTargetDirectoryPicker.text()): |
|
424 args.extend(["--prefix", |
|
425 self.condaTargetDirectoryPicker.text()]) |
|
426 if self.condaCloneGroup.isChecked(): |
|
427 if bool(self.condaCloneNameEdit.text()): |
|
428 args.extend(["--clone", self.condaCloneNameEdit.text()]) |
|
429 elif bool(self.condaCloneDirectoryPicker.text()): |
|
430 args.extend(["--clone", |
|
431 self.condaCloneDirectoryPicker.text()]) |
|
432 if self.condaInsecureCheckBox.isChecked(): |
|
433 args.append("--insecure") |
|
434 if self.condaDryrunCheckBox.isChecked(): |
|
435 args.append("--dry-run") |
|
436 if not self.condaCloneGroup.isChecked(): |
|
437 if bool(self.condaPythonEdit.text()): |
|
438 args.append("python={0}".format( |
|
439 self.condaPythonEdit.text())) |
|
440 if bool(self.condaPackagesEdit.text()): |
|
441 args.extend(self.condaPackagesEdit.text().split()) |
422 else: |
442 else: |
423 if self.virtualenvButton.isChecked(): |
443 if self.virtualenvButton.isChecked(): |
424 if self.extraSearchPathPicker.text(): |
444 if self.extraSearchPathPicker.text(): |
425 args.append("--extra-search-dir={0}".format( |
445 args.append("--extra-search-dir={0}".format( |
426 Utilities.toNativeSeparators( |
446 Utilities.toNativeSeparators( |