• Bug#1076236: python3-numpy: python3-numpy doesn't support cross-buildin

    From Timo =?UTF-8?Q?R=C3=B6hling?=@21:1/5 to All on Fri Aug 2 22:00:01 2024
    Hi Dima,

    * Dima Kogan <dkogan@debian.org> [2024-08-01 16:47]:
    I THINK this is currently impossible, or at least I can't figure out a
    set of Build-Depends that would achive this result. It maybe would be
    enough to add a Multi-Arch tag, but it would be clearer to split the dev
    stuff (*.h and *.pc) into a separate package, and that package should be
    Multi-Arch:same.

    Thinking about this some more, I'm fairly certain that splitting the
    package is the correct way to do this because the -dev package shouldn't >require python3 to be installed, which is currently required by numpy. >Installing a foreign-architecture python3 requires qemu, so that's never
    what we want.

    Furthermore, some packages (like "mrcal", for instance) require numpy at >build-time for two purposes:

    - Build-time code generation. This needs numpy:native
    - Accessing numpy.pc to build the extension module. this needs
    numpy:foreign

    So if we really wanted to make this work without splitting the current >python3-numpy package, it would need to be Multi-Arch:same AND be happy >installing only the native python3. This isn't obviously possible, and
    even if it were, splitting the package would make this much clearer.

    Unless I hear an objection or a better idea here, I'm going to implement >this, and propose a patch in a reply to this bug.
    I'm not opposed to splitting the package per se, but I want to point
    out that long before I became NumPy maintainer, there used to be a
    separate python-numpy-dev package already, and I'd like to find out
    why it was discontinued and if the reason is still relevant before I
    go ahead with a new split.


    Cheers
    Timo

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

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmatOSMACgkQzIxr3RQD 9Mpo4RAAgULqf5+5s5Lcd9JENVLW1bQ9D5rkBtdzrxITF4Wyi8hl8alBnoKeb2cD 9NV1N5TpBMWFXMCawg8eD/goeLe4CQ8jSGZkgp31tEHLl4VmkJLLDsn+153nu4ML lzztUt8/i0iHepgfgWxoUfOxvPd1zEjvYwva/DgFUXgiRoS1HQCLTt39EyKIKJEw NcUgTvPzkYwXF2xfcGz1ws3UIkJhW2BR5rNycCcazvwn3c88xLOh2s20JYvquZ73 1swwROvLDzj/BTnt9HTC/B2a5cgklkyfx7lKiEeNvfmW5/98JAlbWpUSLgVQHUp2 TsXCdEZ+1n2q2H4duwYTSSvWEicuDTMlYwsFEKneZvE