[Python-apps-team] Bug#652751: s3ql: FTBFS: tries to download stuff from the internet

Jakub Wilk jwilk at debian.org
Wed Dec 28 21:08:27 UTC 2011


* Nikolaus Rath <Nikolaus at rath.org>, 2011-12-28, 11:29:
>>The committed fix isn't going to work.
>Why not? If the correct argparse version is installed, distribute 
>shouldn't be trying to download anything anymore.

Well, if you look at the build log, python-argparse >= 1.1 was already 
installed. So tightening the build-dependency, while is the correct 
thing to do, won't help for this particular bug.


More to the point, the problem is that since 1.2.1-2 python-argparse 
doesn't provide modules for 2.7 anymore, but python2.7 doesn't ship 
egg metadata for argparse. As a consequence, it's now impossible to 
import argparse with via pkg_resources using python2.7.

There are a few ways to fix this problem:

1) Make python2.7 provide egg-info for argparse (similarly as it does 
for wsgiref).

2) Patch s3sql's setup.py to not include argparse in install_requires 
and tests_require if python2.7 is being used.

3) Last but not least, revert the fix for #651962, as it causes more 
harm than good.

Please note that these options are orthogonal. Implementing any of them 
will fix the FTBFS, but IMO all three should be done.

-- 
Jakub Wilk





More information about the Python-apps-team mailing list