diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/miniconda3/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/miniconda3/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/miniconda3/package.py b/var/spack/repos/builtin/packages/miniconda3/package.py index 4d27b4978a..63900b4ee9 100644 --- a/var/spack/repos/builtin/packages/miniconda3/package.py +++ b/var/spack/repos/builtin/packages/miniconda3/package.py @@ -7,6 +7,7 @@ import platform from os.path import split from spack import * +from spack.util.environment import EnvironmentModifications _versions = { '4.10.3': { @@ -50,3 +51,7 @@ class Miniconda3(Package): dir, script = split(self.stage.archive_file) bash = which('bash') bash(script, '-b', '-f', '-p', self.prefix) + + def setup_run_environment(self, env): + filename = self.prefix.etc.join('profile.d').join('conda.sh') + env.extend(EnvironmentModifications.from_sourcing_file(filename)) |