On Wed, Feb 02, 2022 at 01:06:56PM +0000, Gordon Ball wrote: > On Wed, Feb 02, 2022 at 11:35:19AM +0000, Julian Gilbey wrote: > > [...] > > > > ipykernel depends on the debugpy package, as stated in setup.py. > > However, within Debian build, python3-debugpy is not listed in the > > Build-Depends, so the resulting binary package does not Depend(s) on > > it either. The ipykernel test suite passes because the debugger test > > is skipped if debugpy is not installed, but Spyder behaves badly in > > its absence. > > Yes, sorry. This is a known, but admittedly not documented, limitation > of the current package. As far as I could tell debugpy was effectively > treated as an optional feature (all imports seem to be protected with > try-catch, etc), despite being listed as install_requires.
Yay! python3-debugpy has now migrated to testing! So this bug can finally be fixed. The only thing needed for ipykernel is to add python3-debugpy to the Build-Depends field (obviously not with <!nocheck>) and all works. I've run the package tests on multiple architectures with python3-debugpy installed and all the tests pass. I'm happy to do this as a team upload, but equally happy if one of you wants to (as the named Uploaders). Best wishes, Julian