installer: if pip fails upgrade and retry once
This commit is contained in:
parent
7120c424d4
commit
701ff35652
@ -109,11 +109,17 @@ create_virtualenv()
|
|||||||
source ${KSENV}/bin/activate
|
source ${KSENV}/bin/activate
|
||||||
pip --disable-pip-version-check install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
|
pip --disable-pip-version-check install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
|
||||||
if [ $? -gt 0 ]; then
|
if [ $? -gt 0 ]; then
|
||||||
echo "Error: pip install exited with status code $?"
|
echo_error "Error: pip install exited with status code $?"
|
||||||
echo "Unable to install dependencies, aborting install."
|
echo_text "Trying again with new tools..."
|
||||||
|
sudo apt-get install -y build-essential cmake
|
||||||
|
pip install --upgrade pip setuptools
|
||||||
|
pip install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
|
||||||
|
if [ $? -gt 0 ]; then
|
||||||
|
echo_error "Unable to install dependencies, aborting install."
|
||||||
deactivate
|
deactivate
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
deactivate
|
deactivate
|
||||||
echo_ok "Virtual enviroment created"
|
echo_ok "Virtual enviroment created"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user