Skip to content

Commit c2cde1e

Browse files
authored
add spack env flags [deception-rebuild]
1 parent dc6c5d4 commit c2cde1e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

buildsystem/spack/binary_mirror.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
source buildsystem/spack/load_spack.sh &&
44
SPACK_MIRROR="${SPACK_MIRROR:?SPACK_MIRROR is unset. Please use the load_spack script first.}" &&
5-
spack develop --path=$(pwd) exago@develop &&
6-
spack bootstrap now &&
7-
spack concretize -f &&
8-
(spack mirror create -a --directory $SPACK_MIRROR || true) &&
9-
spack mirror add local file://$SPACK_MIRROR &&
10-
spack mirror list
5+
spack -e $SPACKENV develop --path=$(pwd) exago@develop &&
6+
spack -e $SPACKENV bootstrap now &&
7+
spack -e $SPACKENV concretize -f &&
8+
(spack -e $SPACKENV mirror create -a --directory $SPACK_MIRROR || true) &&
9+
spack -e $SPACKENV mirror add local file://$SPACK_MIRROR &&
10+
spack -e $SPACKENV mirror list
1111

1212
res=$?
1313

buildsystem/spack/deception/sbatch.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ cp /qfs/projects/earthshot/src/coinhsl-archive-2019.05.21.tar.gz . &&
4646
. buildsystem/spack/load_spack.sh &&
4747
. buildsystem/spack/binary_mirror.sh &&
4848
# spack clean -abm && # shouldn't run this everytime...
49-
spack develop --no-clone --path=$(pwd) exago@develop &&
49+
spack -e $SPACKENV develop --no-clone --path=$(pwd) exago@develop &&
5050
mkdir hiop_dev
51-
spack develop --clone --force FORCE --path=$(pwd)/hiop_dev hiop@develop &&
51+
spack -e $SPACKENV develop --clone --force FORCE --path=$(pwd)/hiop_dev hiop@develop &&
5252
cd hiop_dev &&
5353
git submodule update --init --recursive &&
5454
#git checkout develop && #test out patch

0 commit comments

Comments
 (0)