Bug#1061357: python3-spglib: spglib python package not identified by dh_python3
Drew Parsons
dparsons at debian.org
Mon Jan 22 23:18:20 GMT 2024
Package: python3-spglib
Version: 2.2.0-2
Severity: normal
We have dh_python3 to help automatically identify python package
dependencies when building a package.
It's unable to identify spglib, however. For instance a pymatgen build
log shows
dh_python3 -a -O--buildsystem=pybuild
I: dh_python3 pydist:302: Cannot find package that provides spglib. Please add package that provides it to Build-Depends or add "spglib python3-spglib" line to debian/py3dist-overrides or add proper dependency to Depends by hand and ignore this info.
I'm not sure exactly why dh_python3 can't identify it. I would have
thought it could find out which package provides
/usr/lib/python3/dist-packages/spglib. But it's not doing that. Maybe
it's a bug in dh-python.
But I notice that python3-spglib doesn't provide the .dist-info
directory that most other python packages provide. I guess dh-python
is using the dist-info mechanism to identify packages. Perhaps we
should file a bug against dh-python for it to run something like
"dpkg -S /usr/lib/python3/dist-packages/<pymodule>" if it doesn't find
a dist-info entry.
In the meantime, I figure spglib's lack of dist-info occurs because
it's a cmake build rather than a python setuptools build, in which
case the problem sits alongside Bug#1061263.
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.6.9-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-spglib depends on:
ii libc6 2.37-13
ii libsymspg2 2.2.0-2
ii python3 3.11.6-1
ii python3-numpy 1:1.24.2-2
python3-spglib recommends no packages.
python3-spglib suggests no packages.
-- no debconf information
More information about the debian-science-maintainers
mailing list