Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
吴坎 authored Mar 26, 2024
1 parent 0576660 commit 332aaab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
### 使用预编译的环境

```shell
docker run \
docker run \
--name sccenv \
wukan0621/sccenv
# 请提前将 sccenv 挂载到目标位置
Expand All @@ -31,10 +31,10 @@ docker rm sccenv
最小化配置一个可以使用的 spack,需要的软件依赖可以参考 [Dockerfile](./Dockerfile)

```shell
python3 -c "from tarfile import open;from urllib.request import urlopen;open(mode='r|gz',fileobj=urlopen('https://github.com/SYSU-SCC/sysu-scc-spack-repo/archive/refs/tags/v0.21.2.12.3.0.12.20240311.tar.gz')).extractall()"
python3 -c "from tarfile import open;from urllib.request import urlopen;open(mode='r|gz',fileobj=urlopen('https://github.com/SYSU-SCC/sysu-scc-spack-repo/archive/refs/tags/v0.21.2.12.3.0.12.20240326.tar.gz')).extractall()"

# 只依赖这一个环境变量,可以放进 ~/.bashrc
export SCC_SETUP_ENV=$(realpath sysu-scc-spack-repo-0.21.2.12.3.0.12.20240311/share/sysu-scc-spack-repo/setup-env.sh)
export SCC_SETUP_ENV=$(realpath sysu-scc-spack-repo-0.21.2.12.3.0.12.20240326/share/sysu-scc-spack-repo/setup-env.sh)

# 初始化
$(dirname $SCC_SETUP_ENV)/init-env.sh v0.21.2
Expand Down

0 comments on commit 332aaab

Please sign in to comment.