If environment variables are set in the anaconda-project.yml file they are only set when using anaconda-project run. It is possible to set variables into the $CONDA_PREFIX/conda-meta/state file to allow setting variables upon activation.
> conda env config vars set DUDE=woah
> cat $CONDA_PREFIX/conda-meta/state
{"env_vars": {"DUDE": "woah"}}
The prepare action can be amended to set variables as shown above
If environment variables are set in the anaconda-project.yml file they are only set when using
anaconda-project run
. It is possible to set variables into the$CONDA_PREFIX/conda-meta/state
file to allow setting variables upon activation.The prepare action can be amended to set variables as shown above