From 752aa98c0459c109b23db3f5a048691e426498da Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 16 Aug 2024 21:39:14 -0400 Subject: [PATCH] ci: Avoid setuptools 72.2.0 when installing kiwi on PyPy Due to https://github.com/pypa/setuptools/issues/4571, kiwisolver fails to build on PyPy. Until kiwisolver has PyPy 3.10 wheels (https://github.com/nucleic/kiwi/pull/182), we should avoid the buggy setuptools. --- .github/workflows/cibuildwheel.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index e258ea38c482..327e0dcafc25 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -193,6 +193,14 @@ jobs: env: CIBW_BUILD: "pp310-*" CIBW_ARCHS: ${{ matrix.cibw_archs }} + # Work around for https://github.com/pypa/setuptools/issues/4571 + # This can be removed once kiwisolver has wheels for PyPy 3.10 + # https://github.com/nucleic/kiwi/pull/182 + CIBW_BEFORE_TEST: >- + PIP_CONSTRAINT=pypy-constraint.txt && + echo "setuptools!=72.2.0" > $PIP_CONSTRAINT && + pip install kiwisolver && + unset PIP_CONSTRAINT if: matrix.cibw_archs != 'aarch64' && matrix.os != 'windows-latest' - uses: actions/upload-artifact@v4