Skip to content

Commit 5e699ba

Browse files
committed
remove externally managed warning for now
1 parent 25e9aa9 commit 5e699ba

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name" : "EmonScripts",
3-
"version" : "1.8.11",
3+
"version" : "1.8.12",
44
"location" : "/opt/openenergymonitor",
55
"branches_available": ["stable","master"],
66
"requires": []

update/main.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ fi
5151
echo "Hardware detected: $hardware"
5252

5353
sudo apt-get install -y python3-pip
54+
55+
if [ -e /usr/lib/python3.11/EXTERNALLY-MANAGED ]; then
56+
sudo rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED
57+
echo "Removed pip3 external management warning."
58+
fi
59+
if [ -e /usr/lib/python3.11/EXTERNALLY-MANAGED.orig ]; then
60+
sudo rm -rf /usr/lib/python3.11/EXTERNALLY-MANAGED.orig
61+
echo "Removed pip3 external management warning."
62+
fi
63+
5464
pip3 install redis
5565

5666
if [ "$emonSD_pi_env" = "1" ]; then

0 commit comments

Comments
 (0)