Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Andreas Tille Newsgroups: linux.debian.maint.python,linux.debian.bugs.dist Subject: Re: [Python-modules-team] Bug#830186: sphinx: intersphinx mapping extension causes network access during package builds Date: Thu, 14 Jul 2016 13:30:02 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jul 14 11:20:39 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.287 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, MEDS2=2, RP_MATCHES_RCVD=-1.287] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/13996 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160714112023.GP30299@an3as.eu Approved: robomod@news.nic.it Lines: 43 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 831239@bugs.debian.org X-Original-Date: Thu, 14 Jul 2016 13:20:23 +0200 X-Original-Message-ID: <20160714112023.GP30299@an3as.eu> X-Original-References: <1467878033.2235446.659246769.7769F4C6@webmail.messagingengine.com> <20160707193017.GA9300@mitya57.me> <8737nitgw2.fsf@prune.linuxpenguins.xyz> Xref: csiph.com linux.debian.maint.python:8658 linux.debian.bugs.dist:752968 Hi, On Sun, Jul 10, 2016 at 11:34:53AM +1000, Brian May wrote: > Moved to debian-python list from bug report. Great - so I can step in here with an equivalent problem. :-) > 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. I'm using override_dh_auto_build: # arch USE_CYTHON=true dh_auto_build # indep: PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b html doc build/html PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b man doc build/man in python-biom-format[1] which results in #831239. I was once advised to specify the http_proxy that way (others here in this thread as well) and I wonder how to solve this. If I try to export http_proxy and do not call sphinx-build manually at all no documentation will be created. So how to solve this? Kind regards Andreas. [1] https://anonscm.debian.org/git/debian-med/python-biom-format.git -- http://fam-tille.de