From dc055c14fa130aec11010180ef7960d4efc9322b Mon Sep 17 00:00:00 2001
From: Nicolas Forquet <nicolas.forquet@irstea.fr>
Date: Tue, 25 Oct 2022 10:11:04 +0200
Subject: [PATCH] rename env.sh to create_virtual_environment.sh

---
 create_virtual_environment.sh | 17 +++++++++++++++++
 env.sh                        |  7 -------
 2 files changed, 17 insertions(+), 7 deletions(-)
 create mode 100755 create_virtual_environment.sh
 delete mode 100755 env.sh

diff --git a/create_virtual_environment.sh b/create_virtual_environment.sh
new file mode 100755
index 00000000..f5bc4cbd
--- /dev/null
+++ b/create_virtual_environment.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# ensure that the libatlas-base-dev library is installed
+sudo apt-get install -y libatlas-base-dev
+
+# Create the virtual environment
+python3 -m venv ohmpy
+
+# Activate it
+source ohmpy/bin/activate || exit 1  # NOTE: Added || exit to avoid installing requirements in system python if the virtual environment can't be loaded
+
+# Solve issues associated to storage allocation
+export CFLAGS=-fcommon
+
+# install all required packages in the virtual environment.
+pip install -r requirements.txt
+
diff --git a/env.sh b/env.sh
deleted file mode 100755
index 7f8f33f9..00000000
--- a/env.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-sudo apt-get install -y libatlas-base-dev
-python3 -m venv ohmpy
-source ohmpy/bin/activate || exit 1  # NOTE: Added || exit to avoid installing requirements in system python
-export CFLAGS=-fcommon
-pip install -r requirements.txt
-
-- 
GitLab