Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions eb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,16 @@ then
export FANCYLOGGER_IGNORE_MPI4PY=1
fi

# If a profile filename is given, run easybuild via cProfile
if [ -z "${EB_PROFILE}" ]
then
EB_PROFILE_FLAGS=()
else
verbose "Writing profile output to: \"${EB_PROFILE}\""
EB_PROFILE_FLAGS=(-m cProfile -o "${EB_PROFILE}")
fi

export EB_SCRIPT_PATH="${0}"

verbose "${PYTHON} -m ${EASYBUILD_MAIN} ${*}"
exec "${PYTHON}" -m "${EASYBUILD_MAIN}" "${@}"
verbose "${PYTHON} ${EB_PROFILE_FLAGS[*]} -m ${EASYBUILD_MAIN} ${*}"
exec "${PYTHON}" "${EB_PROFILE_FLAGS[@]}" -m "${EASYBUILD_MAIN}" "${@}"