[med-svn] [Git][med-team/ghmm][master] Fixup build with python 3.13 (Closes: #1092058)

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Tue Jan 14 12:55:01 GMT 2025



Nilesh Patra pushed to branch master at Debian Med / ghmm


Commits:
674db0dc by Nilesh Patra at 2025-01-14T12:54:59+00:00
Fixup build with python 3.13 (Closes: #1092058)
- - - - -


2 changed files:

- + debian/patches/python3.13-build-fix.patch
- debian/patches/series


Changes:

=====================================
debian/patches/python3.13-build-fix.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Replace PyEval_CallObject with PyObject_CallObject deprecated in Python 3.9 and removed in Python 3.13
+Author: Nilesh Patra <nilesh at debian.org>
+Last-Update: 2025-01-14
+
+--- a/ghmmwrapper/ghmmwrapper.i
++++ b/ghmmwrapper/ghmmwrapper.i
+@@ -169,7 +169,7 @@
+         // Build Python arguments
+         arglist = Py_BuildValue("(is)", level, message);
+         // Call Python
+-        PyEval_CallObject(func, arglist);
++        PyObject_CallObject(func, arglist);
+         // Trash arguments
+         Py_DECREF(arglist);
+     }
\ No newline at end of file


=====================================
debian/patches/series
=====================================
@@ -11,3 +11,4 @@ fix-test-mcmc.patch
 python3.12.patch
 gcc-14.patch
 python3.12-syntax.patch
+python3.13-build-fix.patch
\ No newline at end of file



View it on GitLab: https://salsa.debian.org/med-team/ghmm/-/commit/674db0dcc1f58c41e1aab838e32cad57e9ee57c5

-- 
View it on GitLab: https://salsa.debian.org/med-team/ghmm/-/commit/674db0dcc1f58c41e1aab838e32cad57e9ee57c5
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250114/c09a6508/attachment-0001.htm>


More information about the debian-med-commit mailing list