--- a/VirtualEnv/VirtualenvConfigurationDialog.py Sun Jan 27 12:39:53 2019 +0100 +++ b/VirtualEnv/VirtualenvConfigurationDialog.py Sun Jan 27 19:52:37 2019 +0100 @@ -417,8 +417,28 @@ """ args = [] if self.condaButton.isChecked(): - # TODO: assemble the conda arguments - pass + args.extend(["create", "--json", "--yes"]) + if bool(self.condaNameEdit.text()): + args.extend(["--name", self.condaNameEdit.text()]) + if bool(self.condaTargetDirectoryPicker.text()): + args.extend(["--prefix", + self.condaTargetDirectoryPicker.text()]) + if self.condaCloneGroup.isChecked(): + if bool(self.condaCloneNameEdit.text()): + args.extend(["--clone", self.condaCloneNameEdit.text()]) + elif bool(self.condaCloneDirectoryPicker.text()): + args.extend(["--clone", + self.condaCloneDirectoryPicker.text()]) + if self.condaInsecureCheckBox.isChecked(): + args.append("--insecure") + if self.condaDryrunCheckBox.isChecked(): + args.append("--dry-run") + if not self.condaCloneGroup.isChecked(): + if bool(self.condaPythonEdit.text()): + args.append("python={0}".format( + self.condaPythonEdit.text())) + if bool(self.condaPackagesEdit.text()): + args.extend(self.condaPackagesEdit.text().split()) else: if self.virtualenvButton.isChecked(): if self.extraSearchPathPicker.text():