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


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

Re: dh_python or pybuild

From Andrey Rahmatullin <wrar@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: dh_python or pybuild
Date 2021-10-11 14:40 +0200
Message-ID <D72L0-2ec-9@gated-at.bofh.it> (permalink)
References <D72Bj-2ax-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.
> 
> 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=pybuild" 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/policy.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.

-- 
WBR, wRAR

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next 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