2017-01-19 18:54:54 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-04-06 15:23:41 +03:00
|
|
|
aptget_update()
|
|
|
|
{
|
|
|
|
if [ ! -z $1 ]; then
|
|
|
|
echo ""
|
|
|
|
echo "Retrying apt-get update..."
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
output=`sudo apt-get update 2>&1`
|
|
|
|
echo "$output"
|
|
|
|
if [[ $output == *[WE]:\ * ]]; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
aptget_update || aptget_update retry || aptget_update retry
|
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
set -e
|
|
|
|
|
2019-12-21 16:48:00 +03:00
|
|
|
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
|
2019-07-20 11:33:08 +03:00
|
|
|
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
|
2022-01-26 04:23:43 +03:00
|
|
|
cmake meson imagemagick libharfbuzz-dev libfribidi-dev
|
2016-01-13 09:31:49 +03:00
|
|
|
|
2020-10-29 14:41:29 +03:00
|
|
|
python3 -m pip install --upgrade pip
|
2021-07-29 12:04:48 +03:00
|
|
|
python3 -m pip install --upgrade wheel
|
2020-10-29 14:41:29 +03:00
|
|
|
PYTHONOPTIMIZE=0 python3 -m pip install cffi
|
|
|
|
python3 -m pip install coverage
|
2021-06-30 04:28:00 +03:00
|
|
|
python3 -m pip install defusedxml
|
2020-10-29 14:41:29 +03:00
|
|
|
python3 -m pip install olefile
|
|
|
|
python3 -m pip install -U pytest
|
|
|
|
python3 -m pip install -U pytest-cov
|
2021-03-12 00:32:30 +03:00
|
|
|
python3 -m pip install -U pytest-timeout
|
2020-10-29 14:41:29 +03:00
|
|
|
python3 -m pip install pyroma
|
|
|
|
python3 -m pip install test-image-results
|
2021-09-06 00:36:40 +03:00
|
|
|
python3 -m pip install numpy
|
2020-08-13 12:39:08 +03:00
|
|
|
|
2022-04-23 03:22:29 +03:00
|
|
|
# PyQt6 doesn't support PyPy3
|
2021-08-09 16:17:09 +03:00
|
|
|
if [[ $GHA_PYTHON_VERSION == 3.* ]]; then
|
2022-04-23 03:22:29 +03:00
|
|
|
sudo apt-get -qq install libegl1 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxkbcommon-x11-0
|
|
|
|
python3 -m pip install pyqt6
|
2019-10-07 04:41:33 +03:00
|
|
|
fi
|
2017-01-19 18:54:54 +03:00
|
|
|
|
|
|
|
# webp
|
|
|
|
pushd depends && ./install_webp.sh && popd
|
|
|
|
|
|
|
|
# libimagequant
|
|
|
|
pushd depends && ./install_imagequant.sh && popd
|
|
|
|
|
2019-07-03 16:03:09 +03:00
|
|
|
# raqm
|
|
|
|
pushd depends && ./install_raqm.sh && popd
|
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
# extra test images
|
|
|
|
pushd depends && ./install_extra_test_images.sh && popd
|