Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Python pybuild system & setup.cfg Date: Thu, 23 Mar 2023 22:20:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Mar 23 21:11:38 2023 Old-Return-Path: X-Amavis-Spam-Status: No, score=-14.5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5302138.UJKl44JCkb"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Mailing-List: archive/latest/20891 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/2628843.m9GcA6U0NJ@localhost Approved: robomod@news.nic.it Lines: 94 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 23 Mar 2023 17:10:19 -0400 X-Original-Message-ID: <2628843.m9GcA6U0NJ@localhost> X-Original-References: Xref: csiph.com linux.debian.maint.python:14983 --nextPart5302138.UJKl44JCkb Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1"; protected-headers="v1" From: Scott Kitterman To: debian-python@lists.debian.org Subject: Re: Python pybuild system & setup.cfg Date: Thu, 23 Mar 2023 17:10:19 -0400 Message-ID: <2628843.m9GcA6U0NJ@localhost> In-Reply-To: References: On Thursday, March 23, 2023 5:07:56 PM EDT =C9tienne Mollier wrote: > Hi Hilmar, >=20 > Preu=DFe, 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: > >=20 > > DESTDIR=3Ddebian/tmp > >=20 > > %: > > dh $@ --buildsystem=3Dpybuild > >=20 > > The build fails right at the beginning, with: > >=20 > > dh clean --buildsystem=3Dpybuild > >=20 > > dh_auto_clean -O--buildsystem=3Dpybuild > >=20 > > I: pybuild base:240: python3.11 setup.py clean > > python3.11: can't open file '/<>/setup.py': [Errno 2] No > > such file or directory > > E: pybuild pybuild:388: clean: plugin distutils failed with: exit > > code=3D2: python3.11 setup.py clean > >=20 > > The content of the pyproject.toml is: > >=20 > > [build-system] > > requires =3D ["setuptools"] > > build-backend =3D "setuptools.build_meta" > >=20 > > The build Deps I use until now are: > >=20 > > Build-Depends: debhelper-compat (=3D 13), > >=20 > > python3, > > python3-setuptools, > > dh-sequence-python3 > >=20 > > 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. >=20 > offpunk upstream made a similar move recently. I added the > following packages to build dependencies: > * flit > * pybuild-plugin-pyproject >=20 > Hope this helps, Since setuptools is the build system identified in pyproject.toml, flit isn= 't=20 needed for this package. Adding pybuild-plugin-pyproject to build depends= =20 should be sufficient. Scott K --nextPart5302138.UJKl44JCkb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----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----- --nextPart5302138.UJKl44JCkb--