From 08dbc28d29781c1607c8bc128a1002e8c727e230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 19 Apr 2024 11:43:03 +0200 Subject: [PATCH] ci: install xmlsec wheel manually This seems better approach than building lxml which can not be cached. See https://github.com/xmlsec/python-xmlsec/issues/316 --- ci/pip-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/pip-install b/ci/pip-install index 2f7fa6289dda..2eace56941f8 100755 --- a/ci/pip-install +++ b/ci/pip-install @@ -17,8 +17,8 @@ pip install $(sed -n 's/.*"\(wheel==\([^"]*\)\)".*/\1/p' pyproject.toml) pip install --no-binary :all: cffi # workaround for lxml/xmlsec1 compatibility, see https://github.com/xmlsec/python-xmlsec/issues/316 -# shellcheck disable=SC2046 -pip install --no-binary :all: $(sed -n 's/.*"\(lxml[><=]\([^"]*\)\)".*/\1/p' pyproject.toml) +PYVERMARK=$(python -c 'import sys; print(f"{sys.version_info.major}{sys.version_info.minor}")') +pip install "https://github.com/xmlsec/python-xmlsec/releases/download/1.3.14/xmlsec-1.3.14-cp${PYVERMARK}-cp${PYVERMARK}-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" if [ "${1:-latest}" = migrations ] ; then pip install -e ".[all,mysql,ci]"