From 8e9bfcd5753c8eadca716bdcb05ba9993cfae754 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 4 Oct 2023 15:05:07 -0700 Subject: [PATCH] build/pkgs/cysignals/patches: Remove --- .../patches/cython3-fix-warning.patch | 13 -------- .../cysignals/patches/cython3-legacy.patch | 30 ------------------- 2 files changed, 43 deletions(-) delete mode 100644 build/pkgs/cysignals/patches/cython3-fix-warning.patch delete mode 100644 build/pkgs/cysignals/patches/cython3-legacy.patch diff --git a/build/pkgs/cysignals/patches/cython3-fix-warning.patch b/build/pkgs/cysignals/patches/cython3-fix-warning.patch deleted file mode 100644 index 98cad9625e4..00000000000 --- a/build/pkgs/cysignals/patches/cython3-fix-warning.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/cysignals/signals.pxd.in b/src/cysignals/signals.pxd.in -index c86e085..a98c8d1 100644 ---- a/src/cysignals/signals.pxd.in -+++ b/src/cysignals/signals.pxd.in -@@ -54,7 +54,7 @@ cdef extern from "macros.h" nogil: - # can be used to make Cython check whether there is a pending exception - # (PyErr_Occurred() is non-NULL). To Cython, it will look like - # cython_check_exception() actually raised the exception. --cdef inline void cython_check_exception() nogil except *: -+cdef inline void cython_check_exception() except * nogil: - pass - - diff --git a/build/pkgs/cysignals/patches/cython3-legacy.patch b/build/pkgs/cysignals/patches/cython3-legacy.patch deleted file mode 100644 index 274575d5d35..00000000000 --- a/build/pkgs/cysignals/patches/cython3-legacy.patch +++ /dev/null @@ -1,30 +0,0 @@ -commit 9996a4028ddc7f9a5ffda3df65d5b7d3b7df8aa5 -Author: Gonzalo TornarĂ­a -Date: Wed Jul 19 18:34:57 2023 -0300 - - cython3 support using legacy directives - -diff --git a/setup.py b/setup.py -index 37acdfc..f68270b 100755 ---- a/setup.py -+++ b/setup.py -@@ -157,13 +157,17 @@ class build_ext(_build_ext): - # Run Cython with -Werror on continuous integration services - # with Python 3.6 or later - from Cython.Compiler import Options -- Options.warning_errors = True -+ Options.warning_errors = False - - from Cython.Build.Dependencies import cythonize - return cythonize(extensions, - build_dir=cythonize_dir, - include_path=["src", os.path.join(cythonize_dir, "src")], -- compiler_directives=dict(binding=True, language_level=2)) -+ compiler_directives=dict( -+ binding=True, -+ language_level=2, -+ legacy_implicit_noexcept=True, -+ )) - - - class build_py(_build_py):