Package: src:jpy Version: 2.1.0-1 User: [email protected] Usertags: python3.15 Control: forwarded -1 https://github.com/jpy-consortium/jpy/issues/243
¡Hola! While rebuilding packages against python 3.15 we found that jpy produces some errors when used against it. Some of this caught by the autopkgtest[0]. This is due that some deprecated and removed functions are used: Py_GetProgramName(), Py_GetPrefix(), Py_GetExecPrefix(), Py_GetProgramFullPath(), Py_GetPath(), Py_GetPythonHome() I'm attaching a patch to remove those functions [0] https://debusine.debian.net/debian/r-python-python3.15/artifact/4232006/ -- cheers, Emmanuel Arias ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ [email protected] ⢿⡄⠘⠷⠚⠋⠀ OpenPGP: 13796755BBC72BB8ABE2AEB5 FA9DEC5DE11C63F1 ⠈⠳⣄
From: Emmanuel Arias <[email protected]> Date: Sat, 22 Aug 2026 00:45:37 -0300 Subject: Remove removed functions call Remove some functions that was removed from python3.15. Forwarded: https://github.com/jpy-consortium/jpy/issues/243 Author: Emmanuel Arias <[email protected]>x Last-Update: 2026-08-22 --- src/main/c/jni/org_jpy_PyLib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/c/jni/org_jpy_PyLib.c b/src/main/c/jni/org_jpy_PyLib.c index a3e9bff..c2b1dc9 100644 --- a/src/main/c/jni/org_jpy_PyLib.c +++ b/src/main/c/jni/org_jpy_PyLib.c @@ -257,12 +257,14 @@ JNIEXPORT jboolean JNICALL Java_org_jpy_PyLib_startPython0 if (JPy_DiagFlags != 0) { printf("PyLib_startPython: global Python interpreter information:\n"); +#if PY_VERSION_HEX < 0x030F0000 printf(" Py_GetProgramName() = \"%ls\"\n", Py_GetProgramName()); printf(" Py_GetPrefix() = \"%ls\"\n", Py_GetPrefix()); printf(" Py_GetExecPrefix() = \"%ls\"\n", Py_GetExecPrefix()); printf(" Py_GetProgramFullPath() = \"%ls\"\n", Py_GetProgramFullPath()); printf(" Py_GetPath() = \"%ls\"\n", Py_GetPath()); printf(" Py_GetPythonHome() = \"%ls\"\n", Py_GetPythonHome()); +#endif printf(" Py_GetVersion() = \"%s\"\n", Py_GetVersion()); printf(" Py_GetPlatform() = \"%s\"\n", Py_GetPlatform()); printf(" Py_GetCompiler() = \"%s\"\n", Py_GetCompiler());
signature.asc
Description: PGP signature

