diff --git a/runscripts/jenkins/setup-environment.sh b/runscripts/jenkins/setup-environment.sh index c8a9fb914..96d7f764c 100644 --- a/runscripts/jenkins/setup-environment.sh +++ b/runscripts/jenkins/setup-environment.sh @@ -1,14 +1,23 @@ set -e +# Load newer Git and Java for nextflow +module load system git java/21.0.4 + +# Set PYTHONPATH to root of repo so imports work export PYTHONPATH=$PWD -module load wcEcoli/python3 java/18.0.2 +# Use one thread for OpenBLAS (better performance and reproducibility) +export OMP_NUM_THREADS=1 -export PATH="${GROUP_HOME}/pyenv/bin:${PATH}" -eval "$(pyenv init -)" -eval "$(pyenv virtualenv-init -)" +# Initialize pyenv +export PYENV_ROOT="${GROUP_HOME}/pyenv" +if [ -d "${PYENV_ROOT}" ]; then + export PATH="${PYENV_ROOT}/bin:${PATH}" + eval "$(pyenv init -)" + eval "$(pyenv virtualenv-init -)" +fi ### Edit this line to make this branch use another pyenv -pyenv local viv-ecoli +pyenv local vEcoli pyenv activate make clean compile