Hi Andrey,

* Andrey Rakhmatullin <w...@debian.org> [2025-02-02 14:42]:
Which packages need to run it? All (arch:any?) packages that in the end get a dependency on python3-numpy? Is it just "arch:any packages that have a dep on python3-numpy but don't have a dep on python3-numpy-abiN"?
Python extensions which built against NumPy depend on the current NumPy ABI and must call dh_numpy3 to make sure they declare the correct dependency. Pure Python packages can just depend on python3-numpy.

dh_numpy3 simply assumes that arch:any packages build binary Python extensions and arch:all packages are pure Python. This is a good rule of thumb, although Multi-Arch and its workaround for the interpreter problem has muddied the water a little bit in this regard.

As an aside, I didn't find a good doc that tells the packagers when and how to call dh_numpy3 (only ones that say call it) so I'm only surprised that this doesn't happen in more packages.
There is the lintian check and a README.DebianMaints, both predating my maintainership. I haven't given it much thought until now, but I'm generally open to suggestions on how to improve the documentatiom and/or the way dh_numpy3 is integrated with Debian builds.


Cheers
Timo

--
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯

Attachment: signature.asc
Description: PGP signature

Reply via email to