From e279a61e91ab1c148f8373233945968229d12f23 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Fri, 8 Jan 2021 14:28:42 +0100 Subject: [PATCH] Install virtualenv into runtime container. Enables isolated Python environments for the container. --- ogscm/building_blocks/ogs_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ogscm/building_blocks/ogs_base.py b/ogscm/building_blocks/ogs_base.py index 130b11c..5ed8c4f 100644 --- a/ogscm/building_blocks/ogs_base.py +++ b/ogscm/building_blocks/ogs_base.py @@ -93,10 +93,10 @@ class ogs_base(bb_base): ) def runtime(self, _from="0"): - p = python(devel=True, python2=False) instructions = [ comment(__doc__, reformat=False), - p.runtime(), + python(devel=True, python2=False).runtime(), + pip(pip="pip3", packages=["virtualenv"]), shell(commands=["mkdir -p /apps /scratch /lustre /work /projects"]), ] -- GitLab