-
Notifications
You must be signed in to change notification settings - Fork 176
Description
The update logic in the installers is a bit convoluted right now, and I don't think it's working at all.
The background is that previous iterations of constructor would consider the target environment (if not empty) as part of the fresh installation. However, at some point, the installer was instructed to error if the target directory was not empty (by default). Adding the -f or -u switches in the shell installer would somehow allow that, but there were no guarantees it would succeed. I am not aware of similar switches on Windows installers.
These days, the installer does not solve the target environment, it simply runs an explicit install, overwriting as needed if -f was passed.
I think that's still the right approach (happy to discuss that, though), but some users are confused by how to update the installation. There are two options:
- In installers providing a
condadeployment,conda update -n base condashould suffice assuming thebaseenvironment is tractable. - If
condais not involved, then it's a matter of uninstalling / removing and installing the new one.
I am thinking that maybe we could provide either a custom field to change the default message, or at least parameterize the message depending on whether conda is included in base or not. However, some apps might not want to mention conda at all to keep their delivery story simpler for their users (e.g. Spyder or napari).