shell: Add spack to PATH before calling spack in setup-env.csh (#8740)
This commit is contained in:
parent
33aa06e1cf
commit
af8dde4dda
1 changed files with 1 additions and 1 deletions
|
@ -40,12 +40,12 @@ if ($?SPACK_ROOT) then
|
||||||
alias _spack_pathadd 'set _pa_args = (\!*) && source $_spack_share_dir/csh/pathadd.csh'
|
alias _spack_pathadd 'set _pa_args = (\!*) && source $_spack_share_dir/csh/pathadd.csh'
|
||||||
|
|
||||||
# Set variables needed by this script
|
# Set variables needed by this script
|
||||||
|
_spack_pathadd PATH "$SPACK_ROOT/bin"
|
||||||
eval `spack --print-shell-vars csh`
|
eval `spack --print-shell-vars csh`
|
||||||
|
|
||||||
# Set up modules and dotkit search paths in the user environment
|
# Set up modules and dotkit search paths in the user environment
|
||||||
_spack_pathadd DK_NODE "$_sp_dotkit_root/$_sp_sys_type"
|
_spack_pathadd DK_NODE "$_sp_dotkit_root/$_sp_sys_type"
|
||||||
_spack_pathadd MODULEPATH "$_sp_tcl_root/$_sp_sys_type"
|
_spack_pathadd MODULEPATH "$_sp_tcl_root/$_sp_sys_type"
|
||||||
_spack_pathadd PATH "$SPACK_ROOT/bin"
|
|
||||||
else
|
else
|
||||||
echo "ERROR: Sourcing spack setup-env.csh requires setting SPACK_ROOT to the root of your spack installation"
|
echo "ERROR: Sourcing spack setup-env.csh requires setting SPACK_ROOT to the root of your spack installation"
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue