1717{{ $ornl_hpc = true -}}
1818{{- end -}}
1919
20- {{/* Set scratch_root automatically based on system type */ }}
21- {{ $scratch_root := " ${HOME}" -}}
20+ {{/* Scratch root for HPC systems */ }}
21+ {{- $scratch_root := " ${HOME}" -}}
2222{{- if $nrel_hpc -}}
23- {{ $scratch_root = " /scratch/${USER}" -}}
23+ {{- $scratch_root = " /scratch/${USER}" -}}
2424{{- else if $ornl_hpc -}}
25- {{ $scratch_root = " /lustre/orion/${USER}" -}}
25+ {{- $scratch_root = " /lustre/orion/${USER}" -}}
2626{{- end -}}
2727
28- {{/* Prompt for large install directory (pyenv, virtualenvs) */ }}
29- {{- $use_large_install_dir := false -}}
28+ {{/* Large install dir for systems with small home directories */ }}
3029{{- $large_install_dir := " ${HOME}" -}}
31- {{- if stdinIsATTY -}}
32- {{- $use_large_install_dir = promptBoolOnce . " use_large_install_dir" " Install large executables in non-default location" -}}
33- {{- else if hasKey . " use_large_install_dir" -}}
34- {{- $use_large_install_dir = .use_large_install_dir -}}
35- {{- end -}}
36- {{- if $use_large_install_dir -}}
37- {{- $default_install_dir := printf " %s /install" $scratch_root -}}
38- {{- if stdinIsATTY -}}
39- {{- $large_install_dir = promptStringOnce . " large_install_dir" (printf " Large install directory [%s ]" $default_install_dir ) -}}
40- {{- if not $large_install_dir -}}
41- {{- $large_install_dir = $default_install_dir -}}
42- {{- end -}}
43- {{- else if and (hasKey . " large_install_dir" ) .large_install_dir -}}
44- {{- $large_install_dir = .large_install_dir -}}
45- {{- else -}}
46- {{- $large_install_dir = $default_install_dir -}}
47- {{- end -}}
48- {{- end -}}
30+ {{/* Multi-arch home: use ~/.local symlink to ~/.local-${ARCH} for shared NFS homes */ }}
31+ {{- $is_multiarch_home := false -}}
4932
5033[data]
5134 use_zsh_root_dir = {{ $use_zsh_root_dir }}
5639 nrel_cluster = {{ $nrel_cluster }}
5740 ornl_hpc = {{ $ornl_hpc }}
5841 scratch_root = {{ $scratch_root | quote }}
59- use_large_install_dir = {{ $use_large_install_dir }}
60- large_install_dir = {{ $large_install_dir | quote }}
42+ large_install_dir = {{ $large_install_dir | quote }}
43+ is_multiarch_home = {{ $is_multiarch_home }}
0 commit comments