Path: csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Sergio Durigan Junior 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:40:01 +0200 Message-ID: References: X-Original-To: Andreas Tille X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jul 14 11:34:42 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-8.387 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, LDO_WHITELIST=-5, RP_MATCHES_RCVD=-1.287] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Dkim-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sergiodj.net; s=20160602; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=6I1+jy/IL52Xmh7K+WVeYPP2o+FgDHZ5Tlb+VyqOS/M=; b=VtYY7pZbGOHCZHLtM2EL0cpkBzYMZV6H545UbAtGHaImfdYMRGo4QaYorHTixOcrR0nzdktdFhANNNDswSpByLcDRsDHnAL9KhmM1/oeGZ6vCAAa8nSsovKeXOCjEQv5LzgjLrWm0hYe3pP6gj/2Z0yZGZM/uv3zY4N8FmmQ26A=; X-URL: http://blog.sergiodj.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Mailing-List: archive/latest/13997 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87inw878sf.fsf@sergiodj.net Approved: robomod@news.nic.it Lines: 41 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org, 831239@bugs.debian.org X-Original-Date: Thu, 14 Jul 2016 07:34:24 -0400 X-Original-Message-ID: <87inw878sf.fsf@sergiodj.net> X-Original-References: <1467878033.2235446.659246769.7769F4C6@webmail.messagingengine.com> <20160707193017.GA9300@mitya57.me> <8737nitgw2.fsf@prune.linuxpenguins.xyz> <20160714112023.GP30299@an3as.eu> Xref: csiph.com linux.debian.maint.python:8659 linux.debian.bugs.dist:752970 On Thursday, July 14 2016, Andreas Tille 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. > > 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. Hey Andreas, You have to instruct debhelper to use dh_sphinxdoc. I.e.: dh $@ --with python2,python3,bash-completion,sphinxdoc --buildsystem=pybuild Cheers, -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/