On 02/07/2014 05:12 PM, Andreas Tille wrote:
> Hi folks,
>
> since it worked out pretty well with my more simple question I'm
> impudent enough to come up with a more tricky question:  I need to
> tackle
>
>     git://anonscm.debian.org/debian-med/pysam.git
>
> as a predependency of another package but it seems I need to tweek
> the build process initially says:
>
>
>    dh_auto_clean
> Downloading 
> http://pypi.python.org/packages/source/d/distribute/distribute-0.6.34.tar.gz
Problem comes from distribute_setup.py which makes some downloads.
It is used in setup.py:

from distribute_setup import use_setuptools
use_setuptools()

It is looking for a "distribute-%s-py%d.%d.egg" in python modules.

Maybe if the "distribute" module is installed (build dep) , it will not
do any download.

You could first try deleting:

 130 from distribute_setup import use_setuptools
 131 use_setuptools()

if setuptools is already installed.

Olivier
> Traceback (most recent call last):
>   File "setup.py", line 131, in <module>
>     use_setuptools()
>   File 
> "/home/tillea/debian-maintain/alioth/debian-med_git/build-area/pysam-0.7.5/distribute_setup.py",
>  line 152, in use_setuptools
>     return _do_download(version, download_base, to_dir, download_delay)
>   File 
> "/home/tillea/debian-maintain/alioth/debian-med_git/build-area/pysam-0.7.5/distribute_setup.py",
>  line 131, in _do_download
>     to_dir, download_delay)
>   File 
> "/home/tillea/debian-maintain/alioth/debian-med_git/build-area/pysam-0.7.5/distribute_setup.py",
>  line 201, in download_setuptools
>     src = urlopen(url)
>   File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
>     return _opener.open(url, data, timeout)
>   File "/usr/lib/python2.7/urllib2.py", line 410, in open
>     response = meth(req, response)
>   File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
>     'http', request, response, code, msg, hdrs)
>   File "/usr/lib/python2.7/urllib2.py", line 442, in error
>     result = self._call_chain(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 629, in http_error_302
>     return self.parent.open(new, timeout=req.timeout)
>   File "/usr/lib/python2.7/urllib2.py", line 404, in open
>     response = self._open(req, data)
>   File "/usr/lib/python2.7/urllib2.py", line 422, in _open
>     '_open', req)
>   File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 1222, in https_open
>     return self.do_open(httplib.HTTPSConnection, req)
>   File "/usr/lib/python2.7/urllib2.py", line 1184, in do_open
>     raise URLError(err)
> urllib2.URLError: <urlopen error [Errno 111] Connection refused>
> dh_auto_clean: python setup.py clean -a returned exit code 1
>
>
> How can I prevent the build process from trying to download something
> and start straightly using Debian packaged setup tools?
>
> Once this probably simple question is solved I'd like to come up with a
> more tricky one:  The Python modules are using libraries which are
> just packaged (samtools + tabix).  I wonder how I could tweak the
> build process to use the Debian packaged versions in favour of the
> code copies here?
>
> Kind regards
>
>        Andreas.
>

-- 
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95

gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

Reply via email to