[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pybuild: Building and installing debug objects



Piotr Ożarowski <piotr@debian.org> writes:

> [Ben Finney, 2014-01-31]
> > Piotr Ożarowski <piotr@debian.org> writes:
> > > add python-all-dbg or python3-all-dbg to Build-Depends, is that simple
> > > enough? :)
> > 
> > It's a bit magical and AFAICT undocumented.
>
> `man pybuild`

That is a very brief document, which doesn't say how I should control
the building of debug libraries.

In fact, the only mention is to suggest “build depend on python3-all,
python-all-dbg, pypy, etc.” which reads more like a “you know, just do
the usual stuff”, and doesn't say any special effect of those
dependencies. So no, the manpage doesn't help here.

> or
> http://anonscm.debian.org/gitweb/?p=dh-python/dh-python.git;a=blob;f=pybuild.rst#l19

Entries in VCS aren't documentation for the tool. Where is that document
installed for “pybuild” users?

> > It also behaves differently from ‘dh_python3’: the debug library
> > files are not in ‘usr/lib/python3/’, but ‘usr/lib/python3.3/’. Why
> > the difference?
>
> pybuild DOESN'T replace dh_python{2,3}. It builds/installs files in
> locations where dh_python* (or dh_pysupport) expects them.

Okay, my point is that I've switched from explicitly calling
‘pythonN.N-dbg setup.py’ to relying on “pybuild” implicit behaviour, and
the behaviour has changed. The documentation doesn't help me to
understand the change.

> It installs to /usr/lib/python3.3/ not only for -dbg interpreters, it
> does the same for regular ones as well. dh_python* later moves these
> files to /usr/lib/python3/

Based on what? The only change is that I've removed the explicit rules I
listed earlier, and ‘dh_python3’ no longer finds the debug library files.

> PS did I mention that pybuild doesn't replace dh_python2 nor dh_python3?
>    (duno why but a lot of people assume that pybuild is yet another dh_*
>    helper - it's not, it's dh *buildsystem*)

That might be a useful clarification in the manpage.

-- 
 \              “Whatever you do will be insignificant, but it is very |
  `\                       important that you do it.” —Mohandas Gandhi |
_o__)                                                                  |
Ben Finney


Reply to: