From 70f885859d73cb15b95fc95d8834f269c19b1446 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 4 May 2021 00:07:13 -0400 Subject: [PATCH 1/2] Re-enable PyPy wheels. --- .github/workflows/cibuildwheel.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index 2100d15fe000..24adb08b21bf 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -104,13 +104,10 @@ jobs: run: | python -m cibuildwheel --output-dir dist env: - CIBW_BUILD: "pp3?-*" + CIBW_BUILD: "pp37-*" CIBW_BEFORE_BUILD: pip install certifi numpy==${{ env.min-numpy-version }} CIBW_ARCHS: ${{ matrix.cibw_archs }} - if: > - runner.os != 'Windows' && ( - startsWith(github.ref, 'refs/heads/v3.3') || - startsWith(github.ref, 'refs/tags/v3.3') ) + if: runner.os != 'Windows' && matrix.cibw_archs != 'aarch64' - name: Validate that LICENSE files are included in wheels run: | From 7a5b9eb98e7df2f76774402a81b99cf638caf948 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 4 May 2021 00:37:16 -0400 Subject: [PATCH 2/2] Define Py_DTSF_ADD_DOT_0 to fix older PyPy. --- src/_path.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/_path.h b/src/_path.h index bcdf491ff071..16a981f0e3a8 100644 --- a/src/_path.h +++ b/src/_path.h @@ -21,6 +21,11 @@ #include "_backend_agg_basic_types.h" #include "numpy_cpp.h" +/* Compatibility for PyPy3.7 before 7.3.4. */ +#ifndef Py_DTSF_ADD_DOT_0 +#define Py_DTSF_ADD_DOT_0 0x2 +#endif + struct XY { double x;