From 2d4a4c346c657e866a59eac812a02c87e54a7ff8 Mon Sep 17 00:00:00 2001 From: WuK Date: Tue, 13 Feb 2024 13:50:04 +0800 Subject: [PATCH] Update init-env.sh --- share/sysu-scc-spack-repo/init-env.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/share/sysu-scc-spack-repo/init-env.sh b/share/sysu-scc-spack-repo/init-env.sh index 83628dc..c79f9cb 100755 --- a/share/sysu-scc-spack-repo/init-env.sh +++ b/share/sysu-scc-spack-repo/init-env.sh @@ -2,10 +2,8 @@ python3 -c "from tarfile import open;from urllib.request import urlopen;open(mod mv $(dirname $SCC_SETUP_ENV)/../../../spack-$1/spack-* $(dirname $SCC_SETUP_ENV)/../../../spack rm -rf $(dirname $SCC_SETUP_ENV)/../../../spack-$1 . $SCC_SETUP_ENV -spack mirror add $1 https://binaries.spack.io/$1 -spack mirror add E4S https://cache.e4s.io +spack mirror add $1 s3://spack-binaries/$1 spack buildcache keys --install --trust spack buildcache update-index $1 -spack buildcache update-index E4S spack repo add --scope=site $(dirname $SCC_SETUP_ENV)/../.. spack compiler add --scope=site