Aggiunta attivazione/disattivazione venv.

This commit is contained in:
Emiliano Vavassori 2023-07-03 00:00:49 +02:00
parent 47b8e0cf2a
commit 0215324bba
1 changed files with 6 additions and 0 deletions

View File

@ -11,10 +11,16 @@ 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
if [[ -d venv ]]; then
source venv/bin/activate
fi
pip3 uninstall -y loaih pip3 uninstall -y loaih
# build the actual toolkit # build the actual toolkit
python3 setup.py bdist_wheel python3 setup.py bdist_wheel
pip3 install dist/*.whl; rv=$? pip3 install dist/*.whl; rv=$?
if [[ -d venv ]]; then
deactivate
fi
if [[ ${rv} -eq 0 ]]; then if [[ ${rv} -eq 0 ]]; then
# cleanup # cleanup