• Python pybuild system & setup.cfg

    From =?UTF-8?B?UHJldcOfZSwgSGlsbWFy?=@21:1/5 to All on Thu Mar 23 21:50:01 2023
    Hi,

    I'm a little bit lost, by building the pssh package. The upstream author released a new version, which changed the build system. Before I had a
    setup.py in the root directory, now there is a pyproject.toml and a
    setup.cfg file, the setup.py is gone. The debian/rules file calls the dh sequencer:

    DESTDIR=debian/tmp

    %:
    dh $@ --buildsystem=pybuild

    The build fails right at the beginning, with:

    dh clean --buildsystem=pybuild
    dh_auto_clean -O--buildsystem=pybuild
    I: pybuild base:240: python3.11 setup.py clean
    python3.11: can't open file '/<<PKGBUILDDIR>>/setup.py': [Errno 2] No
    such file or directory
    E: pybuild pybuild:388: clean: plugin distutils failed with: exit
    code=2: python3.11 setup.py clean

    The content of the pyproject.toml is:

    [build-system]
    requires = ["setuptools"]
    build-backend = "setuptools.build_meta"

    The build Deps I use until now are:

    Build-Depends: debhelper-compat (= 13),
    python3,
    python3-setuptools,
    dh-sequence-python3

    I don't know what needs to be changed to convince debhelper to use the setup.cfg instead of setup.py. My wild guess is that I have to change my
    BD's but I don't know what needs to be added/removed.

    Thanks for help,
    Hilmar
    --
    sigfault

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?utf-8?Q?=C3=89tienne?= Mollier@21:1/5 to All on Thu Mar 23 22:10:01 2023
    Hi Hilmar,

    Preuße, Hilmar, on 2023-03-23:
    I'm a little bit lost, by building the pssh package. The upstream author released a new version, which changed the build system. Before I had a setup.py in the root directory, now there is a pyproject.toml and a
    setup.cfg file, the setup.py is gone. The debian/rules file calls the dh sequencer:

    DESTDIR=debian/tmp

    %:
    dh $@ --buildsystem=pybuild

    The build fails right at the beginning, with:

    dh clean --buildsystem=pybuild
    dh_auto_clean -O--buildsystem=pybuild
    I: pybuild base:240: python3.11 setup.py clean
    python3.11: can't open file '/<<PKGBUILDDIR>>/setup.py': [Errno 2] No
    such file or directory
    E: pybuild pybuild:388: clean: plugin distutils failed with: exit
    code=2: python3.11 setup.py clean

    The content of the pyproject.toml is:

    [build-system]
    requires = ["setuptools"]
    build-backend = "setuptools.build_meta"

    The build Deps I use until now are:

    Build-Depends: debhelper-compat (= 13),
    python3,
    python3-setuptools,
    dh-sequence-python3

    I don't know what needs to be changed to convince debhelper to use the setup.cfg instead of setup.py. My wild guess is that I have to change my
    BD's but I don't know what needs to be added/removed.

    offpunk upstream made a similar move recently. I added the
    following packages to build dependencies:
    * flit
    * pybuild-plugin-pyproject

    Hope this helps,
    --
    Étienne Mollier <emollier@emlwks999.eu>
    Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
    Sent from /dev/tty1, please excuse my verbosity.

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

    iQIzBAABCgAdFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmQcv6wACgkQeTz2fo8N Edp1WA//WR6Lczs/Wra8eDt1TprfdTgboDeC+hgWBO9OP1k/Z8QU1azQS6gXXc4s z2WI0+0US7Wqb1b602N//8lvdpj2hkIKII+BamnJzWMs16o+ClvmaVzKOQ6kvXaO /CyursdrG+9kc6Qazza9ARYIqvSbEleNJJvdm2A9XVuoAy8MYRX3mf9WqUWystUU ApbAI3/d/LBHpW9NqQbCfYFe0POSMA20QJo76f04UzDd7qOIX5j0lrGz+hs/Sz6R 4MK/IO9ObhpSdnO6rBS3Z0qBxZoPk//EtyUbx754wE8/nDSJpXpKMTdehgFvHoYg zuNooVeJxP48WiWkYLcTrGXZEa/GL6zcEb6z49mwl3lypDdwMsZKMheZSk0edXJP iK70WAsS9bYONihMP+ckFu6xyzTXlZbTu1Zy47IR4K9VVDMgrLU7ot5VBn6Mx3in aJLad26+we4U8ATyvWYlhEe1o0ARcthkRcUopJKcGqidCIy8FSAIOKvP6LkybU/I iR9Ipzr0LE5iUb7fy6NGFuTV3wcIE3ZNiCbgbc7MTSQjvsxwTC0OpoY8PQXyb9AO PrQtRSav4hOLHV0vMNVCh34waX5dVu/RqGqLJCznInB/2ctvCFXlH+3mYBM5vgmI AJ1v0fye+U3gudhhxbLGIU8tI/7OzH+vjmBiNVY8ggAZBh6yV8E=
    =Dnve
    -----END PGP SIGNATURE-----

    --- Soup
  • From Scott Kitterman@21:1/5 to All on Thu Mar 23 17:10:19 2023
    On Thursday, March 23, 2023 5:07:56 PM EDT Étienne Mollier wrote:
    Hi Hilmar,

    Preuße, Hilmar, on 2023-03-23:
    I'm a little bit lost, by building the pssh package. The upstream author released a new version, which changed the build system. Before I had a setup.py in the root directory, now there is a pyproject.toml and a setup.cfg file, the setup.py is gone. The debian/rules file calls the dh sequencer:

    DESTDIR=debian/tmp

    %:
    dh $@ --buildsystem=pybuild

    The build fails right at the beginning, with:

    dh clean --buildsystem=pybuild

    dh_auto_clean -O--buildsystem=pybuild

    I: pybuild base:240: python3.11 setup.py clean
    python3.11: can't open file '/<<PKGBUILDDIR>>/setup.py': [Errno 2] No
    such file or directory
    E: pybuild pybuild:388: clean: plugin distutils failed with: exit
    code=2: python3.11 setup.py clean

    The content of the pyproject.toml is:

    [build-system]
    requires = ["setuptools"]
    build-backend = "setuptools.build_meta"

    The build Deps I use until now are:

    Build-Depends: debhelper-compat (= 13),

    python3,
    python3-setuptools,
    dh-sequence-python3

    I don't know what needs to be changed to convince debhelper to use the setup.cfg instead of setup.py. My wild guess is that I have to change my BD's but I don't know what needs to be added/removed.

    offpunk upstream made a similar move recently. I added the
    following packages to build dependencies:
    * flit
    * pybuild-plugin-pyproject

    Hope this helps,

    Since setuptools is the build system identified in pyproject.toml, flit isn't needed for this package. Adding pybuild-plugin-pyproject to build depends should be sufficient.

    Scott K

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

    iQIzBAABCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmQcwDsACgkQeNfe+5rV mvEPIxAAn/FQ9lZWVaXsx1M4Fw64pIPEhhv7Zm0wpNErWYIlbzlEIg9fFOhDy2NU wkkJlT44K+AY6EHL0b+T5ENPcLe/4Y9HsGmX5HROm4ookSVNZ8I4EtHblTahnveB P1E1fdhmlY8S502G9DxUJdbyKtn9MSLyR7Ntjneeg/VFswJbFVQ1HPM1x5J7EC/M kXmzhv18nBV1GJDvqHvP8lLDJqJZ1RNNlV3nj7Qm2sLqgEMdsAM215v1Gre6ZGP7 KMmD+q3G4ahsaLEH4eMWOLKhVLn8MK3rdQFpRB3tRUtW64OajiCxsRC4tlYXzkZH YLC8IUFjYLTK5TUcf7ShhHRvv3QqrVeuPY1AJW7YVSQ2Kd2y+zM3TxTJHzYXhIIA a2WL45R0C205A5mz4N7sQ+G/AwMwMOSl8fbhI2Ehlh68OSGgdHvjRC+vLvm3uHgK MdJ1APkfEHGr137TfTNH2ejdGGng3cXaFviHBeMrU3hoARx11ax2JtjyEzofcykv mJ8Dlbr3F2C7Q0wO8OtBbDqPpPhq3xglyzkc9xb8TXM35oHS3n4aouwu51d96pWU bV6UfK3RmlhtBTVf4JGbUtCJFgQkpXAdAsMR4EnOIdj1jF32lKRP/aIUBnVNxnS9 PJln8oJKgV0nBFpgfxW8WlffjCdMQyrDZmsifGKbWrYkS5aBhCQ=
    =vatw
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?B?UHJldcOfZSwgSGlsbWFy?=@21:1/5 to Scott Kitterman on Thu Mar 23 23:10:01 2023
    On 23.03.2023 22:10, Scott Kitterman wrote:
    On Thursday, March 23, 2023 5:07:56 PM EDT Étienne Mollier wrote:

    Hi Étienne, hi Scott,

    offpunk upstream made a similar move recently. I added the
    following packages to build dependencies:
    * flit
    * pybuild-plugin-pyproject

    Hope this helps,

    Since setuptools is the build system identified in pyproject.toml, flit isn't needed for this package. Adding pybuild-plugin-pyproject to build depends should be sufficient.

    Many thanks" Adding pybuild-plugin-pyproject to the B-D simply solved
    the issue.

    Hilmar
    --
    sigfault

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