From e2904812f8e5cbf6d469ba533565c07779fef152 Mon Sep 17 00:00:00 2001 From: framctr <35109437+framctr@users.noreply.github.com> Date: Sat, 14 Sep 2024 07:19:16 +0000 Subject: [PATCH] Switch back to pip with system-wide forced installation --- src/ansible/install.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ansible/install.sh b/src/ansible/install.sh index 9a8001d..a1cbb74 100644 --- a/src/ansible/install.sh +++ b/src/ansible/install.sh @@ -11,12 +11,13 @@ set -e # of the script ensure_nanolayer nanolayer_location "v0.5.0" -$nanolayer_location install apt-get pipx,python3-dev +$nanolayer_location install apt-get pip,python3-dev +# --break-system-packages required by latest Debian-based distros to install the package system-wide if [ "$VERSION" != "latest" ] ; then - pipx install "${PACKAGE}"=="${VERSION}" + pip install "${PACKAGE}"=="${VERSION}" --break-system-packages else - pipx install "$PACKAGE" + pip install "$PACKAGE" --break-system-packages fi echo 'Done!'