• python3-gpib installation layout stopped working

    From Vladimir Vassilev@21:1/5 to All on Mon Jul 29 10:20:02 2024
    Hi,

    I have been maintaining a package used by users of our gpib adapters and
    seems the python bindings for the libgpib0 C library stopped working at
    some point during the bookworm updates.

    Here is how the rules file currently looks: https://github.com/lightside-instruments/gpib-debian/blob/debian/4.3.6-lsi4/debian/rules


    The relevant section is:

    ...

    install:

    ...

    python$$pyvers setup.py install --prefix=/usr
    --root=$(CURDIR)/debian/tmp --install-layout=deb

    ...


    This ends up not working correctly. I also tried creating a pybuild
    based package of only the python bindings to the library which worked.
    Here is how the layout differs.


    Not working:

    dpkg -c python3-gpib_4.3.6-lsi4_armhf.deb

    ...

    -rw-r--r-- root/root      2156 2024-07-23 10:50 ./usr/lib/python3/dist-packages/gpib-1.0-py3.11-linux-armv6l.egg/Gpib.py


    Working(pybuild):

    dpkg -c gpib/linux-gpib-user/language/python3-gpib_1.0-0_armhf.deb

    ...

    -rw-r--r-- root/root      2156 2022-11-30 16:20 ./usr/lib/python3/dist-packages/Gpib.py



    I wonder if the original command line in debian/rules can be changed so
    that it still works or is the only way to go forward is a separate
    package building only the python package with pybuild?


    /Vladimir

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)