Adding the miniforge installer for conda #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This installer is needed to install conda on local/remote computer which does not have it, or only have Anaconda (for license reason, we don't want/cannot to use it). This, in principle, can be particularly useful if we want to automatically setup a python code from the aiidalab-qe app.
I basically added two object to the
utils.py
file:generate_bash_to_install_conda
functionCONDA_DEFAULT_PATH
variablethe script strig to install conda is generated in the
create_conda_env
function ifinstall_conda
isTrue
, and merged to the script used to create the conda env (we put the installer script first, in the sh file):Moreover, now we can define the
path
:str
k:v in theconda
input dictionary. This is needed to define a common path where to install and then find conda.Missing: