Skip to content

Commit

Permalink
python3-Cython: fix regression in cython 3.0.11.
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria authored and ahesford committed Aug 12, 2024
1 parent f6e764b commit b5926bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions srcpkgs/python3-Cython/patches/fix-regression.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Revert https://github.com/cython/cython/pull/6124 which causes a
serious regression, e.g. sagemath FTBS with cython 3.0.11

--- a/Cython/Compiler/Nodes.py
+++ b/Cython/Compiler/Nodes.py
@@ -710,10 +710,8 @@ class CFuncDeclaratorNode(CDeclaratorNode):
and not self.has_explicit_exc_clause
and self.exception_check
and visibility != 'extern'):
- # If function is already declared from pxd, the exception_check has already correct value.
- if not (self.declared_name() in env.entries and not in_pxd):
- self.exception_check = False
# implicit noexcept, with a warning
+ self.exception_check = False
warning(self.pos,
"Implicit noexcept declaration is deprecated."
" Function declaration should contain 'noexcept' keyword.",
2 changes: 1 addition & 1 deletion srcpkgs/python3-Cython/template
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Template file for 'python3-Cython'
pkgname=python3-Cython
version=3.0.11
revision=1
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel"
Expand Down

0 comments on commit b5926bd

Please sign in to comment.