ci: install custom lxml wheel on cp311 win-amd64

Install temporary custom lxml wheel on Windows built in an external
repo, as official wheels are missing for Python 3.11. Building it
from source requires building libxml2 and libxslt first and patching
the wheel build config, which is slow and tedious.
This commit is contained in:
bastimeyer 2022-09-08 17:22:11 +02:00 committed by Forrest
parent fff57f041d
commit c29d58a00f
1 changed files with 5 additions and 0 deletions

View File

@ -8,4 +8,9 @@ python -m pip install --disable-pip-version-check --upgrade pip setuptools
python -m pip install --upgrade -r dev-requirements.txt
# https://github.com/streamlink/streamlink/issues/4021
python -m pip install brotli
# Temporary custom lxml wheel for cp311 on Windows: https://github.com/streamlink/streamlink/pull/4806#issue-1364468477
[[ "$(uname)" != "Linux" ]] \
&& [[ "$(python -V)" =~ "Python 3.11."* ]] \
&& python -m pip install https://github.com/streamlink/temp-wheel-for-lxml-cp311-win-amd64/releases/download/lxml-4.9.1-1/lxml-4.9.1-cp311-cp311-win_amd64.whl \
|| true
python -m pip install -e .