Hi Brian,

On Sun, Jul 10, 2016 at 11:34:53AM +1000, Brian May wrote:
> Not sure I understand how dh-python / pybuild help with this problem.
>
> I thought the recommended way to deal with building documentation was
> something like this in debian/rules:
>
> override_dh_auto_build:
>         dh_auto_build
>         PYTHONPATH=. sphinx-build -b html -N Doc/ Doc/.build/html
>
> ... in which case building the documentation happens outside
> dh_auto_build.
>
> Did I miss something here?

Indeed my comment applies only if Sphinx is invoked by pybuild (for example
if it's called by setup.py build).

If it's invoked separately the only ways would be to export http(s)_proxy in
debian/rules or patch conf.py to get correct intersphinx mapping.

Unfortunately there is no easy way for Sphinx to detect if it's invoked as
part of the package build process, so the ways I can change it are limited.

-- 
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature

Reply via email to