@@ -12,13 +12,13 @@ module list
12
12
13
13
# This assumes that we are installing from a binary mirror, and don't want to fetch files
14
14
# Make sure to use binary_mirror.sh if this is failing
15
- spack install -j $1 && \
15
+ spack -e $SPACKENV install -j $1 && \
16
16
17
17
# This deletes the previous modules that are installed
18
18
# Either use a different module path than other users, or deal with frequent updates
19
19
# To use a different module path, you must update the variable $SPACK_MODULES
20
20
# This is configured for the default for the branch in /buildsystem/spack/platform/env.sh
21
- spack module tcl refresh -y && \
21
+ spack -e $SPACKENV module tcl refresh -y && \
22
22
23
23
# We will create a new modules file, with the first line being the module path
24
24
mkdir -p $base /modules && \
@@ -35,10 +35,10 @@ echo module use -a $SPACK_INSTALL/$SPACK_MODULES/$arch &> $base/modules/dependen
35
35
echo module use -a $SPACK_INSTALL /$SPACK_MODULES /$arch & > $base /modules/exago.sh && \
36
36
37
37
# Now we can append to the files
38
- spack module tcl loads -r -x exago -x openssl exago & >> $base /modules/dependencies.sh && \
38
+ spack -e $SPACKENV module tcl loads -r -x exago -x openssl exago & >> $base /modules/dependencies.sh && \
39
39
# spack module tcl loads -r -x exago -x openssl exago &>> $base/modules/optimized-dependencies.sh && \
40
40
# spack module tcl loads exago &>> $base/modules/exago-optimized.sh && \
41
- spack module tcl loads exago & >> $base /modules/exago.sh
41
+ spack -e $SPACKENV module tcl loads exago & >> $base /modules/exago.sh
42
42
43
43
exit_code=$?
44
44
0 commit comments