From 8ff9ca064ee195b6a7cc4e8d8987eddd90a5be48 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 19 Jul 2023 08:38:53 +0900 Subject: [PATCH] CI: workaround Cython issue --- tools/ci/cibuild.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/ci/cibuild.sh b/tools/ci/cibuild.sh index 4660904b63e..2538d4b1b19 100755 --- a/tools/ci/cibuild.sh +++ b/tools/ci/cibuild.sh @@ -279,6 +279,17 @@ function python-tools { export PYTHONUSERBASE=${tools}/pylocal add_path "${PYTHONUSERBASE}"/bin + # workaround for Cython issue + # https://github.com/yaml/pyyaml/pull/702#issuecomment-1638930830 + pip3 install "Cython<3.0" + git clone https://github.com/yaml/pyyaml.git && \ + cd pyyaml && \ + git checkout release/5.4.1 && \ + sed -i.bak 's/Cython/Cython<3.0/g' pyproject.toml && \ + python setup.py sdist && \ + pip3 install --pre dist/PyYAML-5.4.1.tar.gz + cd .. + # Force the reinstall of python packages due to issues with GitHub # cache restoration. pip3 install --force-reinstall \