Ripristinato setup per installazione in virtualenv come runtime.

This commit is contained in:
emiliano.vavassori 2024-05-23 00:53:42 +02:00
parent 9f8d9db228
commit 09f21c1f44
2 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
dist dist
venv
**/__pycache__ **/__pycache__

View File

@ -11,7 +11,18 @@ if [[ ${retval} -ne 0 ]]; then
# for the sake of consistency, let's make the check_updates.sh script # for the sake of consistency, let's make the check_updates.sh script
# executable # executable
chmod +x check_updates.sh 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 if [[ ${rv} -eq 0 ]]; then
# cleanup # cleanup