Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Brian May Newsgroups: linux.debian.maint.python Subject: Re: [Python-modules-team] Bug#830186: sphinx: intersphinx mapping extension causes network access during package builds Date: Sun, 10 Jul 2016 03:40:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Jul 10 01:35:17 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .microcomaustralia. - helo: .mail-pf0-x22c.google. - helo-domain: .google.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microcomaustralia.com.au; s=google; h=sender:from:to:subject:in-reply-to:organization:references :user-agent:date:message-id:mime-version; bh=sHjbk36mWKUFlWa1qGh5keeMCVeP6GzGTWxzdGbP/iQ=; b=EXGQxCPFf1QbkhDLF/dSdepDf7ZczwVlt0RoTj7qVVw6I4vxAPr+TKupTnltgPgVgu +K8Ayf5+wpZncy0hVDtLaeCYF6xtG4aucjV14u9Wg0HAfsqdY5wb0RliFME6stIgaIjE g/zuN6WE1dtc/63wZ5K+hiRLxAbh9uWpDOsro= X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:in-reply-to:organization :references:user-agent:date:message-id:mime-version; bh=sHjbk36mWKUFlWa1qGh5keeMCVeP6GzGTWxzdGbP/iQ=; b=WDPg2qmA6gUqKIydH80MhzrIAqf60I4yIfr+Rrv9HD3UT94OFpQEHWlnfRIwK0WnEV aU1KRmUPgtjW/sCsZdlayHewIjz8eXCDsW9ieyPv7IznI04OX6bfZy3JJsxWcZKjdGjg mb/GkKaeKU95MAozCgHyZ+25cOfpHSNfKHbgwI5gw7dkGzH45cdyNoTejx+2V9vEoKuL vL7ZXT6K290Fq9AtjyYKS0HmhaiyKHoUsaj7JyHu5rVSAWGE61xT3aJ5bFABteitLSO4 ftfw3aY1c0TPEOa4DM1LZIXgILghEFkMLzoVRbasiaEIGzqXwyV16+onHXzuA5UOJn2L Y+Ng== X-Gm-Message-State: ALyK8tI1QUPx9FsFcYlvxxf6sPYdH6FArBCZKZhuOt9PY0SIAdJEeDgjaecHKjI3tCoFKg== X-Received: by 10.98.134.15 with SMTP id x15mr22504359pfd.21.1468114498598; Sat, 09 Jul 2016 18:34:58 -0700 (PDT) Sender: robomod@news.nic.it Organization: Debian User-Agent: Notmuch/0.22 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Mailing-List: archive/latest/13986 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/8737nitgw2.fsf@prune.linuxpenguins.xyz Approved: robomod@news.nic.it Lines: 24 X-Original-Date: Sun, 10 Jul 2016 11:34:53 +1000 X-Original-Message-ID: <8737nitgw2.fsf@prune.linuxpenguins.xyz> X-Original-References: <1467878033.2235446.659246769.7769F4C6@webmail.messagingengine.com> <20160707193017.GA9300@mitya57.me> X-Original-Sender: Brian May Xref: csiph.com linux.debian.maint.python:8648 Moved to debian-python list from bug report. Dmitry Shachnev 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