73 E5PathPickerModes.DirectoryMode) |
73 E5PathPickerModes.DirectoryMode) |
74 self.condaCloneDirectoryPicker.setWindowTitle( |
74 self.condaCloneDirectoryPicker.setWindowTitle( |
75 self.tr("Conda Environment Location")) |
75 self.tr("Conda Environment Location")) |
76 self.condaCloneDirectoryPicker.setDefaultDirectory( |
76 self.condaCloneDirectoryPicker.setDefaultDirectory( |
77 Utilities.getHomeDir()) |
77 Utilities.getHomeDir()) |
|
78 |
|
79 # TODO: add creation from requirements |
78 |
80 |
79 self.__versionRe = re.compile(r""".*?(\d+\.\d+\.\d+).*""") |
81 self.__versionRe = re.compile(r""".*?(\d+\.\d+\.\d+).*""") |
80 |
82 |
81 self.__virtualenvFound = False |
83 self.__virtualenvFound = False |
82 self.__pyvenvFound = False |
84 self.__pyvenvFound = False |
145 self.noSetuptoolsCheckBox.setEnabled(enable) |
147 self.noSetuptoolsCheckBox.setEnabled(enable) |
146 self.symlinkCheckBox.setEnabled(not enable) |
148 self.symlinkCheckBox.setEnabled(not enable) |
147 self.upgradeCheckBox.setEnabled(not enable) |
149 self.upgradeCheckBox.setEnabled(not enable) |
148 |
150 |
149 # conda page |
151 # conda page |
|
152 # TODO: add creation from requirements |
150 enable = not self.condaCloneGroup.isChecked() |
153 enable = not self.condaCloneGroup.isChecked() |
151 self.condaPackagesEdit.setEnabled(enable) |
154 self.condaPackagesEdit.setEnabled(enable) |
152 self.condaPythonEdit.setEnabled(enable) |
155 self.condaPythonEdit.setEnabled(enable) |
153 self.condaInsecureCheckBox.setEnabled( |
156 self.condaInsecureCheckBox.setEnabled( |
154 enable and CondaInterface.condaVersion() >= (4, 3, 18)) |
157 enable and CondaInterface.condaVersion() >= (4, 3, 18)) |
416 self.condaCloneDirectoryPicker.text()]) |
419 self.condaCloneDirectoryPicker.text()]) |
417 if self.condaInsecureCheckBox.isChecked(): |
420 if self.condaInsecureCheckBox.isChecked(): |
418 args.append("--insecure") |
421 args.append("--insecure") |
419 if self.condaDryrunCheckBox.isChecked(): |
422 if self.condaDryrunCheckBox.isChecked(): |
420 args.append("--dry-run") |
423 args.append("--dry-run") |
|
424 # TODO: add creation from requirements |
421 if not self.condaCloneGroup.isChecked(): |
425 if not self.condaCloneGroup.isChecked(): |
422 if bool(self.condaPythonEdit.text()): |
426 if bool(self.condaPythonEdit.text()): |
423 args.append("python={0}".format( |
427 args.append("python={0}".format( |
424 self.condaPythonEdit.text())) |
428 self.condaPythonEdit.text())) |
425 if bool(self.condaPackagesEdit.text()): |
429 if bool(self.condaPackagesEdit.text()): |