• install entry points in a dedicated binary package

    From PICCA Frederic-Emmanuel@21:1/5 to All on Wed Jun 5 09:20:01 2024
    Hello,

    I am modernizing the binoculars package. I switch it to pyproject.toml and now I need to update the packaging.

    I would like your advices in order to replace this d/rules

    ---

    export DH_VERBOSE=1
    export PYBUILD_NAME=binoculars
    export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/

    %:
    dh $@ --with python3,sphinxdoc --buildsystem=pybuild

    override_dh_auto_test:
    dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest discover -s tests -t {dir} -v'

    override_dh_install:
    dh_numpy3
    dh_install

    # install scripts into binoculars
    python3 setup.py install_scripts -d debian/binoculars/usr/bin

    override_dh_sphinxdoc:
    ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
    PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml doc/source build/html # HTML generator
    dh_installdocs -p binoculars-doc "build/html"
    dh_sphinxdoc -O--buildsystem=pybuild
    endif

    ---

    with the something fonctionnaly equivalent which install the entry points only in the binoculars package.

    replace this combination

    export PYBUILD_AFTER_INSTALL=rm -rf {destdir}/usr/bin/

    ...
    # install scripts in
  • From =?UTF-8?Q?Louis-Philippe_V=C3=A9ron@21:1/5 to PICCA Frederic-Emmanuel on Wed Jun 5 17:00:01 2024
    On 2024-06-05 2 h 57 a.m., PICCA Frederic-Emmanuel wrote:
    with the something fonctionnaly equivalent which install the entry
    points only in the binoculars package.
    ...
    # install scripts into binoculars
    python3 setup.py install_scripts -d debian/binoculars/usr/bin

    I'm not 100% sure I understand your question, but is something
    preventing you from installing the script with a
    debian/binoculars.install file?

    --
    ⢀⣴⠾⠻⢶⣦⠀
    ⣾⠁⢠⠒⠀⣿⡁ Louis-Philippe Véronneau
    ⢿⡄⠘⠷⠚⠋ pollo@debian.org / veronneau.org
    ⠈⠳⣄

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From PICCA Frederic-Emmanuel@21:1/5 to All on Wed Jun 5 17:10:01 2024
    I'm not 100% sure I understand your question, but is something
    preventing you from installing the script with a
    debian/binoculars.install file?

    nothink but it seems to me (I may be wrong), that pybuild install all files directly in the python3-<module> package

    Am I wrong ?

    I end up with the scripts in the python3-<module> package.

    pybuid is clever enought to see that script should go into another package and not the default python3-<module>

    Cheers

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