From 09f21c1f44be5afe0111816cb413324f7970be2f Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 23 May 2024 00:53:42 +0200 Subject: [PATCH] Ripristinato setup per installazione in virtualenv come runtime. --- .gitignore | 1 + check_updates.sh | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 91f1ebe..fbc41eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ dist +venv **/__pycache__ diff --git a/check_updates.sh b/check_updates.sh index 20ed985..5487139 100755 --- a/check_updates.sh +++ b/check_updates.sh @@ -11,7 +11,18 @@ if [[ ${retval} -ne 0 ]]; then # for the sake of consistency, let's make the check_updates.sh script # executable chmod +x check_updates.sh - # Updating the environment is left to hatch itself. + + # Updating runtime + if [[ -d venv ]]; then + source venv/bin/activate + fi + pip3 uninstall -y loaih + # build the actual toolkit + python3 -m build --sdist + pip3 install dist/*.tar.gz; rv=$? + if [[ -d venv ]]; then + deactivate + fi if [[ ${rv} -eq 0 ]]; then # cleanup