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

Fix build_python_environment.sh.

parent daaba7e9
No related branches found
No related tags found
1 merge request!2Split prepare_rundir.sh into three different stages for the whole experiment,...
......@@ -9,6 +9,7 @@ icon:
python_environment:
folder_name: python_environment
requirements:
- numpy==1.23
- enstools-compression
# Just to try a library from a git repository.
- https://gitlab.physik.uni-muenchen.de/Oriol.Tinto/otils.git
......
......@@ -53,11 +53,12 @@ ln -sf $(which python3) ${WORKDIR}/python3
# Install the requirements via pip
# TODO: Due to a incompatibility issue between latest numba and numpy I have to add this here. Hopefully removable soon.
requirements=%python_environment.requirements%
requirements="%python_environment.requirements%"
echo ${requirements}
# Convert list with python format to a bash array
requirements=($( echo ${requirements} | tr -d '[],'))
# Install requirements.
for requirement in ${requirements} ; do
for requirement in ${requirements[@]} ; do
python -m pip install ${requirement}
done
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