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

Re: [Python-modules-team] Bug#830186: sphinx: intersphinx mapping extension causes network access during package builds



Moved to debian-python list from bug report.

Dmitry Shachnev <mitya57@debian.org> writes:

> You say that we can read some flag set by dh-python. However, dh-python
> (aka pybuild) already sets http{,s}_proxy environment variables which
> disable network access for Sphinx. So packages using dh-python are already
> safe.

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?
-- 
Brian May <bam@debian.org>


Reply to: