Skip to content

Commit cbd5b0f

Browse files
committed
fix: add fix for broken piwheels tornado package
1 parent 926dbc9 commit cbd5b0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/02-update-octoprint

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@ fi
2323
if [ $(/usr/local/bin/yq '.server.seenWizards.file_check' /home/pi/.octoprint/config.yaml) == "null" ]; then
2424
sudo -u $USER FILECHECK_WIZARD=$(sudo -u $USER $VENV/bin/python -c "import octoprint_file_check; print(octoprint_file_check.WIZARD_VERSION)") /usr/local/bin/yq -i '.server.seenWizards.file_check = env(FILECHECK_WIZARD)' /home/pi/.octoprint/config.yaml
2525
fi
26+
27+
# fixes for broken packages from piwheels
28+
if [[ $(sudo -u $USER $VENV/bin/python --version | cut -d' ' -f2) =~ ^3\.11\. && $(sudo -u $USER $VENV/bin/pip freeze | grep -i tornado | cut -d= -f3) == "6.4.2" ]]; then
29+
# fetch sdist for tornado 6.4.2 under Python 3.11
30+
sudo -u $USER $VENV/bin/pip install --no-binary=tornado "tornado==6.4.2"
31+
fi

0 commit comments

Comments
 (0)