From abb1f0d2d2a47bf6ad9ad20a843b38ef97113fd3 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sat, 26 Nov 2022 10:28:31 -0300 Subject: [PATCH] installer: add packages needed to build python-networkmanager pass the req file to pip (secuential install was needed for Vext) fixes #812 some systems don't have wheels and need compilation, the packages are needed for those cases --- scripts/KlipperScreen-install.sh | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/scripts/KlipperScreen-install.sh b/scripts/KlipperScreen-install.sh index 3b6bad75..d2190aff 100755 --- a/scripts/KlipperScreen-install.sh +++ b/scripts/KlipperScreen-install.sh @@ -9,7 +9,7 @@ FBTURBO="xserver-xorg-video-fbturbo" FBDEV="xserver-xorg-video-fbdev" PYTHON="python3-virtualenv virtualenv python3-distutils" PYGOBJECT="libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0" -MISC="librsvg2-common libopenjp2-7 libatlas-base-dev wireless-tools" +MISC="librsvg2-common libopenjp2-7 libatlas-base-dev wireless-tools libdbus-glib-1-dev autoconf" OPTIONAL="xserver-xorg-legacy fonts-nanum" # moonraker will check this list when updating @@ -114,15 +114,13 @@ create_virtualenv() fi source ${KSENV}/bin/activate - while read requirements; do - pip --disable-pip-version-check install $requirements - if [ $? -gt 0 ]; then - echo "Error: pip install exited with status code $?" - echo "Unable to install dependencies, aborting install." - deactivate - exit 1 - fi - done < ${KSPATH}/scripts/KlipperScreen-requirements.txt + pip --disable-pip-version-check install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt + if [ $? -gt 0 ]; then + echo "Error: pip install exited with status code $?" + echo "Unable to install dependencies, aborting install." + deactivate + exit 1 + fi deactivate echo_ok "Virtual enviroment created" }