#1147119 python-atom: FTBFS against python 3.15rc2

Package:
src:python-atom
Source:
src:python-atom
Submitter:
Maximiliano Curia
Date:
2026-09-07 21:01:01 UTC
Severity:
normal
Tags:
#1147119#5
Date:
2026-09-07 20:58:42 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that python-atom fails to build from source [1].

The error is:
error: ‘PyWeakref_GET_OBJECT’ was not declared in this scope

This is because the use of deprecated PyWeakref_GET_OBJECT needs to be
replaced with GetRef. I have created add patch to use PyWeakref_GetRef.
This should be forwarded upstream.

I've applied the fix in the sandbox [2] to verify that it builds
successfully, please consider applying the patch to support the upcoming
3.15 version.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4597822/
[2]: https://debusine.debian.net/debian/r-python-python3.15/