Skip to content

Commit feb83a7

Browse files
committed
Add Preferences package in any case
1 parent 3ca70b4 commit feb83a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

juhpc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,8 @@ mkdir -p "$JULIA_PREFDIR" || { error "failed to create directory: $JULIA_PREFDIR
194194
progress_bar 1 # Initialize progress bar.
195195
julia_pref 'using Pkg' 10 # Initialize project.
196196

197-
if [[ -n "${JUHPC_CUDA_HOME}" || -n "${JUHPC_ROCM_HOME}" ]]; then
198-
julia_pref 'using Pkg; Pkg.add("Preferences")' 30
199-
echo "[extras]" >> "$JULIA_PREF_PROJECT"
200-
fi
197+
julia_pref 'using Pkg; Pkg.add("Preferences")' 30 # Add Preferences package in any case to avoid that it has to be installed in postinstall scripts that only want to set preferences.
198+
echo "[extras]" >> "$JULIA_PREF_PROJECT"
201199

202200
if [ -n "${JUHPC_CUDA_HOME}" ]; then # Set preference for using the local CUDA runtime before any installation of CUDA.jl to avoid downloading of artifacts
203201
echo 'CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"' >> "$JULIA_PREF_PROJECT"

0 commit comments

Comments
 (0)