Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #13627

Re: dh_python or pybuild

Path csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod
From Dominik George <natureshadow@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: dh_python or pybuild
Date Mon, 11 Oct 2021 14:40:03 +0200
Message-ID <D72L1-2ec-35@gated-at.bofh.it> (permalink)
References <D72Bj-2ax-7@gated-at.bofh.it>
X-Original-To debian-python <debian-python@lists.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Oct 11 12:31:41 2021
Old-Return-Path <natureshadow@debian.org>
X-Amavis-Spam-Status No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -3.5
X-Operating-System Linux frifot 5.10.0-8-amd64
Jabber-ID nik@mercurius.teckids.org
Openpgp id=A4EB3C5160961C85E80191310AE554E5460E1BDD; preference=signencrypt
X-Accept-Language en-gb; en; de-de; de-at; de; nb-no; nb; no-no; no; nn-no; da; sv; fr-fr; fr
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
X-Mailing-List <debian-python@lists.debian.org> archive/latest/19422
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20211011123125.z2j5vy7rbrwvfdp2@frifot
Approved robomod@news.nic.it
Lines 40
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 11 Oct 2021 14:31:25 +0200
X-Original-Message-ID <20211011123125.z2j5vy7rbrwvfdp2@frifot>
X-Original-References <0c9e76d519cb0667bcf3af211b440e68@posteo.de>
Xref csiph.com linux.debian.maint.python:13627

Show key headers only | View raw


Hi,

> I am not sure if I misunderstand something or if the documentation is
> inconsistent.
> 
> 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)
> 
> But the LibraryStyleGuide
> https://wiki.debian.org/Python/LibraryStyleGuide
> tells me it is pybuild
> (https://wiki.debian.org/Python/LibraryStyleGuide#Overview).
> 
> And the DPT policy
> https://salsa.debian.org/python-team/tools/python-modules/-/blob/master/policy.rst
> tells me something about git-buildpackage and gbp.

the three components work together, or better, are used at different
stages.

* git-buildpackage (which is the same as gbp) is used to manage the
  sources of your package in git

* pybuild is the toolchain that does the building process itself, and
  knows how to run setup.py or other tools, etc.

* dh_python is the debhelper chain, the glue between the package
  building process and pybuild

dh_python can use several different build systems, of which pybuild is
the preferred one. When debhelper calls, e.g. dh_auto_build,
dh_auto_build calls all chains that support the build
target. dh_python does, so it is called, and in turn calls pybuild to
do its magic of figuring out how to do the build for your specific
package at hand.

HTH,
Nik

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

dh_python or pybuild c.buhtz@posteo.jp - 2021-10-11 14:30 +0200
  Re: dh_python or pybuild Andrey Rahmatullin <wrar@debian.org> - 2021-10-11 14:40 +0200
  Re: dh_python or pybuild Dominik George <natureshadow@debian.org> - 2021-10-11 14:40 +0200

csiph-web