[Ben Finney, 2013-10-11]
> I've received conflicting advice on how to deal with Distribute's eagerness
> at connecting to the internet during package builds.
> 
> On 10-Dec-2012, Barry Warsaw wrote:
> > Also, please put this near the top of your d/rules file:
> > 
> > -----snip snip-----
> > # Prevent setuptools/distribute from accessing the internet.
> > export http_proxy = http://127.0.9.1:9
> > -----snip snip-----
> > 
> > This should probably be mandatory for any distutils based package. ;)
> 
> On 11-Oct-2013, Thomas Goirand wrote:
> 
> > I don't agree with adding:
> > export http_proxy = http://127.0.9.1:9
> > 
> > on top of debian/rules. The reason is that, by doing this, you are hiding
> > problems. If a python package downloads something using pip or anything
> > else, it most likely means that you forgot a build-depends. […]
> 
> > So remove it, and if during the build process something tries to download
> > a python package, then you need to simply fix your build-depends.
> > 
> > I'm open to discussions on this very subject though.
> 
> 
> Thanks to both Barry and Thomas for taking this seriously.
> 
> Currently I tend to agree with Barry's advice. Successfully downloading a

if you set http_proxy to a non existing proxy, setuptools/distribute
will still try to download stuff from internet, the only difference is
it will fail this time so setting it is not hiding problems, it's
exposing them.

Note that pybuild is doing it by default (if http{,s}_proxy is not set),
so with --buildsystem=pybuild you will expose missing build dependencies
*and* let get-orig-source work (pybuild doesn't set http_proxy in this
target). If you for some reason need network during build (f.e. tests
setup a HTTP server), just set http_proxy to empty string, in src:flask
I do this:

  override_dh_auto_test:
        http_proxy='' dh_auto_test
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20131011102124.gc12...@p1otr.com

Reply via email to