Path: csiph.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Andrey Rahmatullin Newsgroups: linux.debian.maint.python Subject: Re: dh_python or pybuild Date: Mon, 11 Oct 2021 14:40:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Oct 11 12:33:57 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -3.5 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ACzAA/bBuP4yW9NO" Content-Disposition: inline X-Mailing-List: archive/latest/19423 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/YWQvJLVci9bTVv6G@belkar.wrar.name Approved: robomod@news.nic.it Lines: 61 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 11 Oct 2021 17:33:40 +0500 X-Original-Message-ID: X-Original-References: <0c9e76d519cb0667bcf3af211b440e68@posteo.de> Xref: csiph.com linux.debian.maint.python:13626 --ACzAA/bBuP4yW9NO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 11, 2021 at 12:23:31PM +0000, c.buhtz@posteo.jp wrote: > I am not sure if I misunderstand something or if the documentation is > inconsistent. >=20 > The PythonPolicy > https://www.debian.org/doc/packaging-manuals/python-policy/ > tells me that dh_python should be the preferred tool for packaging > (https://www.debian.org/doc/packaging-manuals/python-policy/#versions) You indeed should use dh_python3, this is normally done by passing "--with python3" to dh(1). > But the LibraryStyleGuide > https://wiki.debian.org/Python/LibraryStyleGuide > tells me it is pybuild > (https://wiki.debian.org/Python/LibraryStyleGuide#Overview). pybuild is a build system, it's used to make actual setup.py calls. You indeed should use it, this is normally done by passing "--buildsystem=3Dpybuild" to dh(1). That page even says "What's important to note here is that both of the dh_python2 and dh_python3 helpers are being invoked, and also that the build system that dh will use is pybuild." when showing the correct dh(1) line. > And the DPT policy > https://salsa.debian.org/python-team/tools/python-modules/-/blob/master/p= olicy.rst > tells me something about git-buildpackage and gbp. gbp is not Python-specific and, strictly speaking, is not a part of Debian packaging, but a tool to store Debian source paclages in git. --=20 WBR, wRAR --ACzAA/bBuP4yW9NO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmFkLyQtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh fEEP/3gPPc/y9JmMb6VV+uPmmthT2T2cDIEyd/sPZY+IXVrlmcyIXQknnP+CaKWR PZl4kCcEw0ZSksq4UtgSotFxssUzOmR0IOvtrhNtpPnws/hnCiuH5VA6FMFvOAha Avw6vm3PEGqeSeHP+sB+xAvHQd2LOytFzNIBtDNaF1Jnu9xQmmjTzy6LklH+daxm uA0lETZaVg1CgEcJHgs0+XLs3AE6Xhgab+N3a++ptr+sTHjxLmgksIANUkD+UG7+ k6lME+AcOMPvjmrOcvxT2yglIWIzMldu/6XQyy3sG0HEGngTHIJsYJmsjFNlZmx1 aI6dq25fjtSfX77fby6Yssv5mYQ22RRKKw6PyjiGCVQkkHcUuUgd1WwnvQypbvHa LSDTlux5b6tbIQxfMnwMdhkN5+5YVXQyHDBKMpnBvfi5A4U+L131kX0+uDtxO2Gk AB6YpwO/DFn4SgmkXjpxBFw2Ujae0b24FdKAiw13rMtBs/dsZ5b+PByBjA6MF8D2 FGpS4lHRpkbaNspvFYNPO+ITzpiMhAg3Oe2O59fWsJcjuVBlVok891Z9QYmZU5PD aI84FkLwyaU5lncTIMXEHJWn/8yeOBAqw54B67Kk7cSwozHR3ioL23Etd7LG28Qe AkFfVVuKvtdSKXH04zdCXpejVU+X6DPLg8VBtLTytoHt8QDh =d/7U -----END PGP SIGNATURE----- --ACzAA/bBuP4yW9NO--