scipion-em / scipion-installer

Scipion app installer for version 3. Compatible with python2 and python3. It creates virtualenv or conda environments.
GNU General Public License v3.0
3 stars 2 forks source link

prevent overwriting existing conda env #31

Open azazellochg opened 2 years ago

azazellochg commented 2 years ago

Raise exception if scipion env with the default/specified name already exists

azazellochg commented 1 year ago

The warning of overwriting existing env is shown unless -y option is passed. @pconesa should we make a warning in docs about using -noAsk option?

pconesa commented 2 months ago

How do you see this, like asking the user to confirm in case -noAsk is used?

pconesa commented 2 months ago

Currently, conda is asking is -noAsk is not used.

WARNING: A conda environment already exists at '/home/pconesa/miniconda3/envs/scipion3'
Remove existing environment (y/[n])? n

The only way to cancel is Control-C.

Yes will remove the environment, N will proceed with the existing but installing things in it.

With -noAsk it goes straight to overwriting.