From c658e3d0526879a7d09f784d78afba1f7771adf7 Mon Sep 17 00:00:00 2001 From: Mike Heier Date: Mon, 11 Nov 2024 08:30:40 -0500 Subject: [PATCH] fix pip-install alias --- rootfs/standard/usr/bin/mynode_post_upgrade.sh | 3 +++ .../usr/share/mynode_apps/lndg/scripts/install_lndg.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 7c24277f..df55c4d9 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -4,6 +4,9 @@ source /usr/share/mynode/mynode_config.sh source /usr/share/mynode/mynode_functions.sh source /usr/share/mynode/mynode_app_versions.sh +# Alias pip to break system??? +alias pip-install=pip install --break-system-packages + set -x set -e diff --git a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh index d6b84654..3822f6ee 100644 --- a/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh +++ b/rootfs/standard/usr/share/mynode_apps/lndg/scripts/install_lndg.sh @@ -19,6 +19,10 @@ fi # Install deps virtualenv -p python3 .venv + +# Alias pip to break system??? +alias pip-install=pip install --break-system-packages + .venv/bin/pip-install -r requirements.txt .venv/bin/pip-install whitenoise .venv/bin/pip-install supervisor