From a7e952f1bf9b9950c1808c098a91bb65d46db2e4 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 8 Mar 2021 14:03:26 +0100
Subject: [PATCH] Make poetry executable for all.

---
 ogscm/building_blocks/ogs_base.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/ogscm/building_blocks/ogs_base.py b/ogscm/building_blocks/ogs_base.py
index 5ed8c4f..f5ba734 100644
--- a/ogscm/building_blocks/ogs_base.py
+++ b/ogscm/building_blocks/ogs_base.py
@@ -86,10 +86,13 @@ class ogs_base(bb_base):
             self.__ospackages.append("python3-venv")
         else:
             self.__ospackages.append("python3-virtualenv")
-        self.__commands.append(
-            """curl -sSL \
-               https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py \
-               | POETRY_HOME=/usr/local/poetry POETRY_VERSION=1.1.2 python3"""
+        self.__commands.extend(
+            [
+                """curl -sSL \
+                https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py \
+                | POETRY_HOME=/usr/local/poetry POETRY_VERSION=1.1.2 python3""",
+                "chmod +x /usr/local/poetry/bin/poetry",
+            ]
         )
 
     def runtime(self, _from="0"):
-- 
GitLab