Skip to content
Snippets Groups Projects
Commit aa422e92 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Don't create a new venv if it already exists

parent 500fa81d
No related branches found
No related tags found
1 merge request!2Split prepare_rundir.sh into three different stages for the whole experiment,...
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment