Bug#1118744: missing python3-numpy build dependency
Timo Röhling
roehling at debian.org
Mon Nov 10 21:25:15 GMT 2025
Hi Adrian,
* Adrian Bunk <bunk at debian.org> [2025-11-10 21:51]:
>On Fri, Oct 24, 2025 at 08:21:34PM +0200, Matthias Klose wrote:
>> Package: src:opencv
>> Version: 4.10.0+dfsg-6
>> Severity: serious
>> Tags: sid forky ftbfs
>>
>> Seen that in an Ubuntu build, not yet sure why it doesn't ftbfs in Debian.
>>
>> -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.13.9",
>> minimum required is "3.2")
>> -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython3.13.so (found
>> suitable exact version "3.13.9")
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> import numpy; print(numpy.get_include())
>> ^^^^^^^^^^^^
>> ModuleNotFoundError: No module named 'numpy'
>>
>> and indeed, there is no explicit b-d on python3-numpy, while you add one as
>> a dependency explicitly. Please also add it as a build dependency.
>
>Is there a good reason why python3-numpy-dev only recommends
>python3-numpy?
>
>It feels wrong that the build dependency on dh-sequence-numpy3 does not
>pull in python3-numpy.
Yes, there is. After the package split to improve cross build support
(see [1]), python3-numpy needed a hard dependency on python3-numpy-dev
to remain backwards and upstream compatible. As the python3-numpy-dev is
technically stand-alone (it can be used to build C extensions without
python3-numpy), the reverse depend was downgraded to avoid
a circular dependency.
Cheers
Timo
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076236
--
⢀⣴⠾⠻⢶⣦⠀ ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁ │ Timo Röhling │
⢿⡄⠘⠷⠚⠋⠀ │ 9B03 EBB9 8300 DF97 C2B1 23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀ ╰────────────────────────────────────────────────────╯
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20251110/7a8a68fb/attachment-0001.sig>
More information about the debian-science-maintainers
mailing list