Debian Codegraph @

debian/patches/0006-remove-removed-functions.patch

raw
1 From: Emmanuel Arias <[email protected]>
2 Date: Sat, 22 Aug 2026 00:45:37 -0300
3 Subject: Remove removed functions call
4
5 Remove some functions that was removed from python3.15.
6 Forwarded: https://github.com/jpy-consortium/jpy/issues/243
7 Author: Emmanuel Arias <[email protected]>x
8 Last-Update: 2026-08-22
9 ---
10 src/main/c/jni/org_jpy_PyLib.c | 2 ++
11 1 file changed, 2 insertions(+)
12
13 diff --git a/src/main/c/jni/org_jpy_PyLib.c b/src/main/c/jni/org_jpy_PyLib.c
14 index a3e9bff..c2b1dc9 100644
15 --- a/src/main/c/jni/org_jpy_PyLib.c
16 +++ b/src/main/c/jni/org_jpy_PyLib.c
17 @@ -257,12 +257,14 @@ JNIEXPORT jboolean JNICALL Java_org_jpy_PyLib_startPython0
18
19 if (JPy_DiagFlags != 0) {
20 printf("PyLib_startPython: global Python interpreter information:\n");
21 +#if PY_VERSION_HEX < 0x030F0000
22 printf(" Py_GetProgramName() = \"%ls\"\n", Py_GetProgramName());
23 printf(" Py_GetPrefix() = \"%ls\"\n", Py_GetPrefix());
24 printf(" Py_GetExecPrefix() = \"%ls\"\n", Py_GetExecPrefix());
25 printf(" Py_GetProgramFullPath() = \"%ls\"\n", Py_GetProgramFullPath());
26 printf(" Py_GetPath() = \"%ls\"\n", Py_GetPath());
27 printf(" Py_GetPythonHome() = \"%ls\"\n", Py_GetPythonHome());
28 +#endif
29 printf(" Py_GetVersion() = \"%s\"\n", Py_GetVersion());
30 printf(" Py_GetPlatform() = \"%s\"\n", Py_GetPlatform());
31 printf(" Py_GetCompiler() = \"%s\"\n", Py_GetCompiler());
32