Package: src:debugpy
Version: 1.8.20+ds-1
User: [email protected]
Usertags: python3.15
Tags: patch
Hi!
While rebuilding the python related packages against the Python 3.15rc1
version we found that debugpy fails to build from source [1].
This is due to an added DeprecationWarning in python 3.15 when using
fork from a multithreaded program. And the fact that the tests run in a
mode that considers all warnings as errors. To actually avoid the
warning problem a redesign in the way the debugger runs it's components
(and the debugging application) would be required. Instead I added a
patch that simply ignores the DeprecationWarning during the tests run.
I'm attaching that patch applied to the sandbox [2], this patch allow
use to build the packages that depend on debugpy.
Please consider applying this or a similar patch, and/or discussing with
upstream about a proper fix.
Happy hacking,
[1]:
https://debusine.debian.net/debian/r-python-python3.15/work-request/1057019/
[2]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: Ignore deprecation warnings in test sessions
Author: Maximiliano Curia <[email protected]>
Forwarded: not-needed
--- a/tests/debug/session.py
+++ b/tests/debug/session.py
@@ -359,7 +359,7 @@
env.update(base_env)
env["PYTHONUNBUFFERED"] = "1"
- env["PYTHONWARNINGS"] = "error"
+ env["PYTHONWARNINGS"] = "error,ignore::DeprecationWarning"
env["DEBUGPY_TEST_SESSION_ID"] = str(self.id)
env.prepend_to("PYTHONPATH", DEBUGGEE_PYTHONPATH.strpath)