Easily load all modules in Spack environment

40 views
Skip to first unread message

Manuel Burger

unread,
Jul 15, 2019, 10:26:26 AM7/15/19
to Spack
Hello Spack community,

I have been searching in the docs for some time for this, but could not find anything. Is there a way to load all the dependencies of an environment at once, without writing a script myself. I am thinking of something like "spack env load" which would load all the modules in a currently activated environment. Until now I have been writing scripts myself, but this is tedious and redundant, since the environment already contains all the information needed to load the modules. In that sense, I am looking more or less for the same behaviour as python virtual environments have when activating them.

Is there a simple and fast way to achieve this functionality?

Regards,
Manuel

Elizabeth A. Fischer

unread,
Jul 15, 2019, 10:27:34 AM7/15/19
to Manuel Burger, Spack
See `spack env loads -r`


--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spack+un...@googlegroups.com.
To post to this group, send email to sp...@googlegroups.com.
Visit this group at https://groups.google.com/group/spack.
To view this discussion on the web visit https://groups.google.com/d/msgid/spack/87da5a56-44dd-485f-8e2d-fdf9a35d669c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Manuel Burger

unread,
Jul 15, 2019, 3:12:50 PM7/15/19
to Spack
Thanks a lot, I had a feeling it must be simple :)


Am Montag, 15. Juli 2019 16:27:34 UTC+2 schrieb Elizabeth A. Fischer:
See `spack env loads -r`


On Mon, Jul 15, 2019 at 10:26 AM Manuel Burger <burge...@gmail.com> wrote:
Hello Spack community,

I have been searching in the docs for some time for this, but could not find anything. Is there a way to load all the dependencies of an environment at once, without writing a script myself. I am thinking of something like "spack env load" which would load all the modules in a currently activated environment. Until now I have been writing scripts myself, but this is tedious and redundant, since the environment already contains all the information needed to load the modules. In that sense, I am looking more or less for the same behaviour as python virtual environments have when activating them.

Is there a simple and fast way to achieve this functionality?

Regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "Spack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sp...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages