-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python3-pplpy: patch and rebuild for Cython 3
- Loading branch information
Showing
3 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
srcpkgs/python3-pplpy/patches/aaa28537fa7ea061ebb8d5131b1e23673eaf741d.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters