revert: build: remove externally-managed flag for python (#4400) (#4410)

This reverts commit 240f28d5dc.
This commit is contained in:
openoms 2024-02-11 20:05:57 +00:00 committed by GitHub
parent 81e5fae6dc
commit e70f4b7197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -391,6 +391,14 @@ else
exit 1
fi
# don't protect system packages from pip install
# tracking issue: https://github.com/raspiblitz/raspiblitz/issues/4170
for PYTHONDIR in /usr/lib/python3.*; do
if [ -f "$PYTHONDIR/EXTERNALLY-MANAGED" ]; then
rm "$PYTHONDIR/EXTERNALLY-MANAGED"
fi
done
# make sure /usr/bin/pip exists (and calls pip3 in Debian Buster)
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
# 1. libs (for global python scripts)