From 5a75ed470aab43ac1f91392e9440558e2b751f08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Wed, 19 Jul 2023 21:04:33 -0300 Subject: [PATCH] python3-pplpy: patch and rebuild for Cython 3 --- ...8537fa7ea061ebb8d5131b1e23673eaf741d.patch | 22 ++++++++++++++++++ .../patches/cython3-legacy.patch | 23 +++++++++++++++++++ srcpkgs/python3-pplpy/template | 2 +- 3 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3-pplpy/patches/aaa28537fa7ea061ebb8d5131b1e23673eaf741d.patch create mode 100644 srcpkgs/python3-pplpy/patches/cython3-legacy.patch diff --git a/srcpkgs/python3-pplpy/patches/aaa28537fa7ea061ebb8d5131b1e23673eaf741d.patch b/srcpkgs/python3-pplpy/patches/aaa28537fa7ea061ebb8d5131b1e23673eaf741d.patch new file mode 100644 index 00000000000000..21bc2a5214df43 --- /dev/null +++ b/srcpkgs/python3-pplpy/patches/aaa28537fa7ea061ebb8d5131b1e23673eaf741d.patch @@ -0,0 +1,22 @@ +From aaa28537fa7ea061ebb8d5131b1e23673eaf741d Mon Sep 17 00:00:00 2001 +From: Matthias Koeppe +Date: Sun, 31 Jul 2022 12:39:34 -0700 +Subject: [PATCH] ppl/bit_arrays.pxd: Use relative cimport + +--- + ppl/bit_arrays.pxd | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ppl/bit_arrays.pxd b/ppl/bit_arrays.pxd +index eb57434..145a978 100644 +--- a/ppl/bit_arrays.pxd ++++ b/ppl/bit_arrays.pxd +@@ -1,4 +1,4 @@ +-from ppl_decl cimport * ++from .ppl_decl cimport * + + cdef class Bit_Row(object): + cdef PPL_Bit_Row *thisptr +-- +GitLab + diff --git a/srcpkgs/python3-pplpy/patches/cython3-legacy.patch b/srcpkgs/python3-pplpy/patches/cython3-legacy.patch new file mode 100644 index 00000000000000..e00b99f8c5f2e0 --- /dev/null +++ b/srcpkgs/python3-pplpy/patches/cython3-legacy.patch @@ -0,0 +1,23 @@ +commit e6f3e66154138ce3e31e803e74b8c71787c70acc +Author: Gonzalo TornarĂ­a +Date: Wed Jul 19 20:47:52 2023 -0300 + + cython3 support using legacy directives + +diff --git a/setup.py b/setup.py +index 13d543b..55dcd34 100755 +--- a/setup.py ++++ b/setup.py +@@ -38,7 +38,11 @@ class build_ext(_build_ext): + self.extensions[:] = cythonize( + self.extensions, + include_path=sys.path, +- compiler_directives={'embedsignature': True}) ++ compiler_directives={ ++ 'embedsignature': True, ++ 'legacy_implicit_noexcept': True, ++ 'c_api_binop_methods': True, ++ }) + + _build_ext.run(self) + diff --git a/srcpkgs/python3-pplpy/template b/srcpkgs/python3-pplpy/template index 67139ff96031fb..6023c63f879825 100644 --- a/srcpkgs/python3-pplpy/template +++ b/srcpkgs/python3-pplpy/template @@ -1,7 +1,7 @@ # Template file for 'python3-pplpy' pkgname=python3-pplpy version=0.8.7 -revision=3 +revision=4 build_style=python3-module hostmakedepends="python3-setuptools python3-Cython" makedepends="python3-cysignals python3-gmpy2 python3-devel gmp-devel