refactor: requirements install: add prefer-binary to the retry path

should help if the system can't build succesfully for whatever reason
This commit is contained in:
Alfredo Monclus committed 2025-07-06 07:06:04 -06:00
1 parent b05aadc4f5
commit bdb4e93709
1 file changed
+2 -2
+2 -2
View File
@@ -146,10 +146,10 @@ create_virtualenv()
if [[ "$(uname -m)" =~ armv[67]l ]]; then
echo_text "Adding piwheels.org as extra index..."
pip install --extra-index-url https://www.piwheels.org/simple --upgrade pip setuptools
pip install --extra-index-url https://www.piwheels.org/simple -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
pip install --extra-index-url https://www.piwheels.org/simple -r ${KSPATH}/scripts/KlipperScreen-requirements.txt --prefer-binary
else
pip install --upgrade pip setuptools
pip install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt
pip install -r ${KSPATH}/scripts/KlipperScreen-requirements.txt --prefer-binary
fi
if [ $? -gt 0 ]; then
echo_error "Unable to install dependencies, aborting install."