Skip to content

Commit

Permalink
python3-fpylll: 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 6aecb9c commit d82eceb
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions srcpkgs/python3-fpylll/patches/cython3-legacy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
commit b6e12c2b0648e84b26dcf0aac507a5b4d9dde301
Author: Gonzalo Tornaría <tornaria@cmat.edu.uy>
Date: Wed Jul 19 20:38:01 2023 -0300

cython3 support using legacy directives

diff --git a/setup.py b/setup.py
index 274836f..8fc5af5 100755
--- a/setup.py
+++ b/setup.py
@@ -123,7 +123,12 @@ class build_ext(_build_ext, object):
self.extensions,
include_path=["src"],
build_dir=self.cythonize_dir,
- compiler_directives={"binding": True, "embedsignature": True, "language_level": 2},
+ compiler_directives={
+ "binding": True,
+ "embedsignature": True,
+ "language_level": 2
+ "legacy_implicit_noexcept": True,
+ },
)
super(build_ext, self).run()

diff --git a/src/fpylll/fplll/enumeration_callback_helper.h b/src/fpylll/fplll/enumeration_callback_helper.h
index c099430..706162f 100644
--- a/src/fpylll/fplll/enumeration_callback_helper.h
+++ b/src/fpylll/fplll/enumeration_callback_helper.h
@@ -5,7 +5,7 @@
#include <Python.h>
#include <fplll/fplll.h>

-extern "C" {
+extern "C++" {
bool evaluator_callback_call_obj(PyObject *obj, int n, double *new_sol_coord);
}

2 changes: 1 addition & 1 deletion srcpkgs/python3-fpylll/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'python3-fpylll'
pkgname=python3-fpylll
version=0.5.9
revision=1
revision=2
build_style=python3-module
hostmakedepends="python3-Cython"
makedepends="python3-cysignals python3-devel gmp-devel mpfr-devel fplll-devel
Expand Down

0 comments on commit d82eceb

Please sign in to comment.