From e70f4b71979dacd49f8c199e0fdbb9f9a7bd82da Mon Sep 17 00:00:00 2001 From: openoms <43343391+openoms@users.noreply.github.com> Date: Sun, 11 Feb 2024 20:05:57 +0000 Subject: [PATCH] revert: build: remove externally-managed flag for python (#4400) (#4410) This reverts commit 240f28d5dc8fd01df6322b8b025bca699bb287e5. --- build_sdcard.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build_sdcard.sh b/build_sdcard.sh index aefbae295..62648dd86 100644 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -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)