Skip to content

Commit

Permalink
Only create the virtual environment if it doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
bvanessen committed Aug 23, 2024
1 parent 55431d0 commit cafa97c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .gitlab/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ else
fi

VENV_DIR="${INSTALL_EXTERNALS_ROOT}/${SYSTEM_INSTALL_PREFIX_EXTERNALS}/venv"
CMD="python3 -m venv ${VENV_DIR}"
echo "${CMD}"
${CMD}
if [[ ! -e "${VENV_DIR}/pyvenv.cfg" ]];
CMD="python3 -m venv ${VENV_DIR}"
echo "${CMD}"
${CMD}
fi
CMD="source ${VENV_DIR}/bin/activate"
echo "${CMD}"
${CMD}
Expand Down

0 comments on commit cafa97c

Please sign in to comment.