public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyliblo3] rawhide: Remove obsolete PyEval_InitThreads() call from generated C code for Python 3.16
@ 2026-11-25 13:18 Martin Gansser
  0 siblings, 0 replies; only message in thread
From: Martin Gansser @ 2026-11-25 13:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pyliblo3
Branch : rawhide
Commit : fa1af31f627b0639d5bc22cd1c501167af282bbc
Author : Martin Gansser <mgansser@netcom-mail.de>
Date   : 2026-11-25T14:17:55+01:00
Stats  : +7/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pyliblo3/c/fa1af31f627b0639d5bc22cd1c501167af282bbc?branch=rawhide

Log:
Remove obsolete PyEval_InitThreads() call from generated C code for Python 3.16

---
diff --git a/python-pyliblo3.spec b/python-pyliblo3.spec
index e0fe26a..ec4d7b1 100644
--- a/python-pyliblo3.spec
+++ b/python-pyliblo3.spec
@@ -5,7 +5,7 @@ Name:           python-pyliblo3
 %global snapinfo ^%{snapdate}git%{sub %{commit} 1 7}
 #Version:        0.16.2%%{snapinfo}
 Version:        0.16.3
-Release:        11%{?dist}
+Release:        12%{?dist}
 Summary:        Python bindings for the liblo Open Sound Control (OSC) library
 # Main code is LGPL-2.1-or-later
 License:        LGPL-2.1-or-later
@@ -64,6 +64,9 @@ chmod 644 NEWS README.md COPYING
 
 %build
 cython -I pyliblo3 pyliblo3/_liblo.pyx
+# PyEval_InitThreads() was removed in Python 3.16. It has been a no-op
+# since Python 3.7, so remove the obsolete call from Cython's generated C code.
+sed -i '/^[[:space:]]*PyEval_InitThreads();[[:space:]]*$/d' pyliblo3/_liblo.c
 %pyproject_wheel
 
 %install
@@ -89,6 +92,9 @@ cp -a scripts/dump_osc.1 scripts/send_osc.1 %{buildroot}%{_mandir}/man1/
 %doc examples/
 
 %changelog
+* Wed Nov 25 2026 Martin Gansser <martinkg@fedoraproject.org> - 0.16.3-12
+- Remove obsolete PyEval_InitThreads() call from generated C code for Python 3.16
+
 * Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 0.16.3-11
 - Rebuilt for Python 3.15.0b4 ABI change
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-25 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 13:18 [rpms/python-pyliblo3] rawhide: Remove obsolete PyEval_InitThreads() call from generated C code for Python 3.16 Martin Gansser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox