Skip to content

Commit

Permalink
python3-pplpy: patch and rebuild for python3-Cython-3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria authored and ahesford committed Jul 21, 2023
1 parent 9db3a14 commit d5f9225
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 <mkoeppe@math.ucdavis.edu>
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 <tornaria@cmat.edu.uy>
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 d5f9225

Please sign in to comment.