22
33aptget_update ()
44{
5- if [ ! -z $1 ]; then
5+ if [ -n " $1 " ]; then
66 echo " "
77 echo " Retrying apt-get update..."
88 echo " "
99 fi
10- output=` sudo apt-get update 2>&1 `
10+ output=$( sudo apt-get update 2>&1 )
1111 echo " $output "
1212 if [[ $output == * [WE]:\ * ]]; then
1313 return 1
2020set -e
2121
2222if [[ $( uname) != CYGWIN* ]]; then
23- sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
24- ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
25- cmake meson imagemagick libharfbuzz-dev libfribidi-dev
23+ sudo apt-get -qq install libfreetype6-dev liblcms2-dev libtiff-dev python3-tk\
24+ ghostscript libjpeg-turbo8-dev libopenjp2-7-dev\
25+ cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
26+ sway wl-clipboard libopenblas-dev
2627fi
2728
2829python3 -m pip install --upgrade pip
2930python3 -m pip install --upgrade wheel
30- PYTHONOPTIMIZE=0 python3 -m pip install cffi
3131python3 -m pip install coverage
3232python3 -m pip install defusedxml
33+ python3 -m pip install ipython
3334python3 -m pip install olefile
3435python3 -m pip install -U pytest
3536python3 -m pip install -U pytest-cov
@@ -41,8 +42,15 @@ if [[ $(uname) != CYGWIN* ]]; then
4142
4243 # PyQt6 doesn't support PyPy3
4344 if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
44- sudo apt-get -qq install libegl1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
45- python3 -m pip install pyqt6
45+ sudo apt-get -qq install libegl1 libxcb-cursor0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxkbcommon-x11-0
46+ # TODO Update condition when pyqt6 supports free-threading
47+ if ! [[ " $PYTHON_GIL " == " 0" ]]; then python3 -m pip install pyqt6 ; fi
48+ fi
49+
50+ # Pyroma uses non-isolated build and fails with old setuptools
51+ if [[ $GHA_PYTHON_VERSION == 3.9 ]]; then
52+ # To match pyproject.toml
53+ python3 -m pip install " setuptools>=67.8"
4654 fi
4755
4856 # webp
0 commit comments