Skip to content

Commit 19d8eca

Browse files
always avoid using ~/.spack
1 parent 649b339 commit 19d8eca

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

setup.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@ echo "Setting environment variable SPACK_STACK_DIR to ${SPACK_STACK_DIR}"
77

88
source ${SPACK_STACK_DIR:?}/spack/share/spack/setup-env.sh
99
echo "Sourcing spack environment ${SPACK_STACK_DIR}/spack/share/spack/setup-env.sh"
10+
# Avoid using ~/.spack direcory for caching, bootstrap, etc.
1011
if [ "$(uname)" != "Darwin" ]; then
1112
export SPACK_USER_CACHE_PATH=$SPACK_ROOT/user_cache
1213
fi
13-
14-
# Apply NCO-specific tweaks to make spack-stack installations more self contained.
15-
if [[ " $* " =~ " --nco " ]]; then
16-
export SPACK_DISABLE_LOCAL_CONFIG=1
17-
echo "Changing bootstrap path to $(spack bootstrap root '$spack/bootstrap')"
18-
fi
14+
export SPACK_DISABLE_LOCAL_CONFIG=1
15+
echo "Changing bootstrap path to $(spack bootstrap root '$spack/bootstrap')"
1916

2017
# Get the current hash of the spack-stack code
2118
export SPACK_STACK_HASH=`git rev-parse --short HEAD`

0 commit comments

Comments
 (0)