[packages/python-Cython] Up to 3.0.11
arekm
arekm at pld-linux.org
Sat Feb 8 18:04:27 CET 2025
commit 964b4ac435c40e3096fa61b91355b07f0c50620a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Feb 8 17:37:12 2025 +0100
Up to 3.0.11
cython-gc-py2-fix.patch | 28 ----------------------------
python-Cython.spec | 12 +++++-------
2 files changed, 5 insertions(+), 35 deletions(-)
---
diff --git a/python-Cython.spec b/python-Cython.spec
index 4b8587b..0dcc620 100644
--- a/python-Cython.spec
+++ b/python-Cython.spec
@@ -10,14 +10,13 @@
Summary: Language for writing Python Extension Modules (Python 2.x version)
Summary(pl.UTF-8): Język służący do pisania modułów rozszerzających Pythona (wersja dla Pythona 2.x)
Name: python-%{module}
-Version: 0.29.36
-Release: 2
+Version: 3.0.11
+Release: 1
License: Apache v2.0
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/cython/
-Source0: https://files.pythonhosted.org/packages/source/c/cython/%{module}-%{version}.tar.gz
-# Source0-md5: a4d0f9fbc9c137f1a88937cd40e8c5ee
-Patch0: cython-gc-py2-fix.patch
+Source0: https://pypi.debian.net/cython/cython-%{version}.tar.gz
+# Source0-md5: 388b85b7c23f501320d19d991b169f5d
URL: https://cython.org/
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
@@ -95,8 +94,7 @@ This package contains example programs for Cython language.
Pakiet zawierający przykładowe programy napisane w języku Cython.
%prep
-%setup -q -n %{module}-%{version}
-%patch0 -p1
+%setup -q -n cython-%{version}
%build
%if %{with python2}
diff --git a/cython-gc-py2-fix.patch b/cython-gc-py2-fix.patch
deleted file mode 100644
index e11d0b3..0000000
--- a/cython-gc-py2-fix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 039ef7c6242b3b6a18363ff22ead04f4e7cce676 Mon Sep 17 00:00:00 2001
-From: Stefan Behnel <stefan_ml at behnel.de>
-Date: Fri, 14 Jul 2023 21:46:56 +0200
-Subject: [PATCH] In Py2, the extension type might get cleaned up before the
- objects at system exit, so we need an extra NULL check for the type pointer.
-
----
- Cython/Compiler/ModuleNode.py | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
-index f98a0c15054..bf2cc63e1e1 100644
---- a/Cython/Compiler/ModuleNode.py
-+++ b/Cython/Compiler/ModuleNode.py
-@@ -1509,7 +1509,13 @@ class ModuleNode(Nodes.Node, Nodes.Block
- if base_type.scope and base_type.scope.needs_gc():
- code.putln("PyObject_GC_Track(o);")
- else:
-+ code.putln("#if PY_MAJOR_VERSION < 3")
-+ # Py2 lacks guarantees that the type pointer is still valid if we dealloc the object
-+ # at system exit time. Thus, we need an extra NULL check.
-+ code.putln("if (!(%s) || PyType_IS_GC(%s)) PyObject_GC_Track(o);" % (base_cname, base_cname))
-+ code.putln("#else")
- code.putln("if (PyType_IS_GC(%s)) PyObject_GC_Track(o);" % base_cname)
-+ code.putln("#endif")
-
- tp_dealloc = TypeSlots.get_base_slot_function(scope, tp_slot)
- if tp_dealloc is not None:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-Cython.git/commitdiff/964b4ac435c40e3096fa61b91355b07f0c50620a
More information about the pld-cvs-commit
mailing list