diff --git a/templates/build_enstools.sh b/templates/build_enstools.sh index b7a86d18eea906769ec281fac8da9fec43e3298e..71a568460f50a1ed122a0ed93220a9234823ebda 100644 --- a/templates/build_enstools.sh +++ b/templates/build_enstools.sh @@ -33,15 +33,17 @@ if [ $( # Compile openmpi with schedulers=slurm spack install python@3.8: else - echo "py-enstools-compression already installed!" + echo "python@3.8: already installed!" fi # Link the python binary into the main folder so can be easily used later: spack load python@3.8: -# Create virtual environment -python3 -m venv --prompt AS venv +if [ ! -d venv ]; then + # Create virtual environment + python3 -m venv --prompt AS venv +fi # Load environment source venv/bin/activate