Bug#1087682: ftbfs with Python 3.13

Matthias Klose doko at debian.org
Mon Nov 18 10:38:37 GMT 2024


it ftbfs with 3.13, and the packaging doesn't check error codes ...
a set -e is missing around the for loops

/usr/bin/python3.13 setup.py build
In file included from 
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1929,
                  from 
/usr/lib/python3/dist-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                  from 
/usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h:5,
                  from ../../../bindings/python/gdpy_intern.h:34,
                  from pydirfile.c:23:
/usr/lib/python3/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: 
warning: #warning "Using depreca
ted NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API 
NPY_1_7_API_VERSION" [-Wcpp]
    17 | #warning "Using deprecated NumPy API, disable it with " \
       |  ^~~~~~~
pydirfile.c: In function ‘gdpy_callback_func’:
pydirfile.c:135:14: error: implicit declaration of function 
‘PyEval_CallObject’; did you mean ‘PyObject_CallObject’? [-
Wimplicit-function-declaration]
   135 |     result = PyEval_CallObject(self->callback, arglist);
       |              ^~~~~~~~~~~~~~~~~
       |              PyObject_CallObject
pydirfile.c:135:12: error: assignment to ‘PyObject *’ {aka ‘struct 
_object *’} from ‘int’ makes pointer from integer wi
thout a cast [-Wint-conversion]
   135 |     result = PyEval_CallObject(self->callback, arglist);
       |            ^
pydirfile.c: In function ‘gdpy_dirfile_getdata’:
pydirfile.c:1014:14: warning: comparison of integer expressions of 
different signedness: ‘size_t’ {aka ‘long unsigned i
nt’} and ‘long long int’ [-Wsign-compare]
  1014 |       if (ns < num_samples) {
       |              ^
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
make[6]: *** [Makefile:892: 
build/lib.linux-x86_64-cpython-313/pygetdata.cpython-313-x86_64-linux-gnu.so] 
Error 1
make[6]: Leaving directory 
'/home/packages/tmp/libgetdata-0.11.0/build-py3.13/bindings/python'



More information about the debian-science-maintainers mailing list