[Python-modules-team] Bug#566795: Bug#566795: python-launchpadlib: Always depend on python-simplejson
Piotr Ożarowski
piotr at debian.org
Mon Feb 1 18:05:54 UTC 2010
[Martin Pitt, 2010-01-25]
> * debian/control: Always depend on python-simplejson, drop the alternative
> "python2.6" dependency. While python2.6 also ships a json module, it has
> at least a different module name, and possibly even a different API.
> (LP: #510129)
how about patching launchpadlib instead to use something like:
try:
import json
except ImportError:
import simplejson as json
(and use json instead of simplejson later).
json module from stdlib is actually (a little bit cleaned) simplejson
From what I've seen in the sources it should be ok.
PS note that simplejson will have to be removed from install_requires in
setup.py (and thus from require.txt
--
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
More information about the Python-modules-team
mailing list