Bug#1123355: spyder-kernels: fixes to make it build against python 3.15rc2
Maximiliano Curia
maxy at gnuservers.com.ar
Sun Sep 6 22:22:19 BST 2026
user debian-python at lists.debian.org
usertags 1123355 python3.15
tags 1123355 patch
thanks
Hi!
While rebuilding the python related packages against the Python 3.15rc2
version I ran into this issue [1].
I have picked a few patches from upstream that take care of the problem:
- Upstream commit 886bc9d: Use curframe.f_locals instead of
curframe_locals in debugger for newer Python versions [2]
- Upstream commit 155fa01: Fix test_functions_with_locals_in_pdb in
Python 3.14 [3]
Additionally, I had to add one patch of my own, overriding the get_trace
function to workaround a recent change in the pdb behaviour. This patch
should be shared with upstream in
https://github.com/spyder-ide/spyder-kernels/issues/583
And finally, the autopkgtest test named pytest had a hardcoded
PYS=python3.13, replacing the use of py3version -s, not sure why that
was there, but since we are removing python3.13 from the archive I
assume that you don't want it anymore. Using the original py3versions -s
call, the autopkgtest is green again.
I've applied these fixes in the sandbox [4] to verify that it builds
successfully, please consider applying them to support the upcoming 3.15
version.
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4589710/
[2]: https://github.com/spyder-ide/spyder-kernels/commit/886bc9d2c613f96ea9b323ee4a1f7e827c29cc00
[3]: https://github.com/spyder-ide/spyder-kernels/commit/155fa010d96a3436c575cefb0ea6eb313e1c280c
[4]: https://debusine.debian.net/debian/r-python-python3.15/
--
"UNIX is basically a simple operating system, but you have to be a genius to
understand the simplicity."
-- Dennis Ritchie
Saludos /\/\ /\ >< `/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Backport-PR-591-on-branch-3.x-PR-Use-generic-args-kwa.patch
Type: text/x-diff
Size: 2233 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260906/2a989f93/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spyderpdb.py-replace-curframe_locals-with-curframe.f_locals.patch
Type: text/x-diff
Size: 9096 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260906/2a989f93/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: allow-set_trace-to-accept-generic-args-and-kwargs.patch
Type: text/x-diff
Size: 1263 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260906/2a989f93/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20260906/2a989f93/attachment.sig>
More information about the debian-science-maintainers
mailing list