Bug#1086577: amp FTBFS with python >= 3.12: No module named 'numpy.distutils'
Stefano Rivera
stefanor at debian.org
Fri Nov 1 16:03:52 GMT 2024
Source: amp
Version: 0.6.1-1
Severity: serious
Tags: ftbfs
Justification: FTBFS
Dear maintainer,
During a test rebuild, amp failed to rebuild.
Probably related to #1067375, numpy.distutils is deprecated and was
removed when building with Python >= 3.12:
https://numpy.org/doc/2.1/reference/distutils.html#module-numpy.distutils
-------------------------------------------------------------------------------
Command: dpkg-buildpackage --sanitize-env -us -uc -mDebusine Rebuild <debusine at example.net> -B -rfakeroot
dpkg-buildpackage: info: source package amp
dpkg-buildpackage: info: source version 0.6.1-1+bd1
dpkg-buildpackage: info: source distribution sid
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
fakeroot debian/rules clean
dh clean --with python3 --buildsystem=pybuild
debian/rules override_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_clean
I: pybuild base:311: python3.12 setup.py clean
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/setup.py", line 4, in <module>
from numpy.distutils.core import Extension, setup
ModuleNotFoundError: No module named 'numpy.distutils'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/<<PKGBUILDDIR>>/setup.py", line 11, in <module>
raise RuntimeError(msg)
RuntimeError: Please install numpy (version 1.7.0 or greater) before installing Amp. (Amp uses numpy's installer so it can compile the fortran modules with f2py.) You should be able to do this with a command like: $ pip install numpy
E: pybuild pybuild:389: clean: plugin distutils failed with: exit code=1: python3.12 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.12 returned exit code 13
make[1]: *** [debian/rules:34: override_dh_auto_clean] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:21: clean] Error 2
dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-01T15:51:34Z
-------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/929918/
About the archive rebuild: The build was made on debusine.debian.net,
on arm64 using sbuild.
You can find the build task here:
https://debusine.debian.net/work-request/42373/
If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.
Thanks,
Stefano
More information about the debian-science-maintainers
mailing list