From b024fee4b61f5901582f47ec612ef40d41f07ecb Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 22 Nov 2021 22:59:15 +0100 Subject: [PATCH] Add test script for venv creation --- test_requirements.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 test_requirements.sh diff --git a/test_requirements.sh b/test_requirements.sh new file mode 100755 index 0000000..e7ececf --- /dev/null +++ b/test_requirements.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Test to create the python virtual env and install all requirements. +# Note: Maybe you didn't have all OS packages installed ;) + +set -e + +final_path="./local_test" + +set -x + +mkdir -p "${final_path}/" +python3 -m venv "${final_path}/venv" +source "${final_path}/venv/bin/activate" + +$final_path/venv/bin/pip install --upgrade wheel pip +$final_path/venv/bin/pip install --no-deps -r "./conf/requirements.txt"