Control: tags -1 + patch
The source of this bug is a mismatch between the build and test stages:
- When building, gnuradio depends on python3-dev (not python3-all-dev)
and so only builds against the current default Python interpreter. At
present, this is Python 3.13.
- When testing, gnuradio's debian/tests/control brings in python3-all
and attempts to test against all supported Python interpreters
(py3versions -s). At present, this is Python 3.13 and 3.14.
Since gnuradio wasn't compiled against the non-default interpreter, the
tests fail with that interpreter.
The nicest solution would be for gnuradio to compile the Python
extensions against all supported Python interpreters (e.g. as a loop
over py3versions -s or using debhelper's pybuild buidsystem) - this is
normally preferred as it allows the 3 transitions that are part of
updating to a new Python interpreter to proceed more easily,
particularly if there are lots of rdeps on the python module.
A less invasive and much easier to implement solution is to make sure
that the tests are only run against the default interpreter - it seems
that gnuradio doesn't have a network of rdeps that would want to use its
Python modules, so this is a reasonable choice.
The attached patch takes the latter approach, testing only against the
default interpreter.
--
Stuart Prescott http://www.nanonanonano.net/ [email protected]
Debian Developer http://www.debian.org/ [email protected]
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
diff --git a/debian/tests/control b/debian/tests/control
index 08135f5..e9da979 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,3 +1,3 @@
Tests: python
-Depends: gnuradio, python3-all, python3-numpy
+Depends: gnuradio, python3, python3-numpy
Restrictions: superficial
diff --git a/debian/tests/python b/debian/tests/python
index 91438e4..5491ff0 100755
--- a/debian/tests/python
+++ b/debian/tests/python
@@ -2,7 +2,7 @@
set -eu
-for python in $(py3versions -s); do
+for python in $(py3versions -d); do
echo "Testing some $python numpy using modules..."
$python -c 'import gnuradio.digital; print(gnuradio.digital.numpy)'
done