Skip to content

Commit

Permalink
python3-pplpy: patch and rebuild for Cython 3
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria authored and ahesford committed Aug 26, 2023
1 parent cf9ff6d commit 5a75ed4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From aaa28537fa7ea061ebb8d5131b1e23673eaf741d Mon Sep 17 00:00:00 2001
From: Matthias Koeppe <[email protected]>
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

23 changes: 23 additions & 0 deletions srcpkgs/python3-pplpy/patches/cython3-legacy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
commit e6f3e66154138ce3e31e803e74b8c71787c70acc
Author: Gonzalo Tornaría <[email protected]>
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)

2 changes: 1 addition & 1 deletion srcpkgs/python3-pplpy/template
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 5a75ed4

Please sign in to comment.