Re: to distribute_setup() or not, that is the question
[Barry Warsaw, 2012-01-26]
> Given that I really don't want to change upstream, the question then is what
> the best approach is for the Debian packaging.
>
> 1) Leave it as above because it's okay that the build fails on Squeeze.
>
> 2) Add a quilt patch to comment out the distribute_setup lines above, and then
> don't version python*-setuptools. In my particular case, it doesn't help
> without further modifications, because the package isn't buildable on
> Squeeze anyway (there's no dh sphinxdoc I think).
>
> 3) Some combination of the B-D versioning and #2.
>
> 4) Or something else (e.g. specify a minimum version in .use_setuptools() that
> gets satisfied on Squeeze.
import sys
try:
import distribute # import setuptools?
except ImportError:
if '--download-distribute' in sys.argv:
import distribute_setup
distribute_setup.use_setuptools()
else:
print >>sys.stderr, 'Please install distribute or add --download-distribute argument'"
exit(1)
--
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
Reply to: