set global.break-system-packages true for pip install without venv (#4746)

This commit is contained in:
openoms 2024-09-24 19:49:11 +02:00 committed by GitHub
parent 238df42d46
commit fd02f9753c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,7 @@ else
blitzpy_wheel=$(ls -trR /home/admin/raspiblitz/home.admin/BlitzPy/dist | grep -E ".*any.whl" | tail -n 1)
blitzpy_version=$(echo ${blitzpy_wheel} | grep -oE "([0-9]\.[0-9]\.[0-9])")
echo "# BlitzPy changed --> UPDATING to Version ${blitzpy_version}"
sudo pip config set global.break-system-packages true
sudo -H /usr/bin/python -m pip install "/home/admin/raspiblitz/home.admin/BlitzPy/dist/${blitzpy_wheel}" >/dev/null 2>&1
fi

View File

@ -68,6 +68,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
fi
# install python lib for smime into virtual env
sudo pip config set global.break-system-packages true
sudo -H /usr/bin/python3 -m pip install smime
# write ssmtp config