]> code.ossystems Code Review - openembedded-core.git/commit
python: add python-codecs runtime dependency for python-json
authorMagnus Olsson <magnus@minimum.se>
Fri, 5 Dec 2014 10:03:46 +0000 (11:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 31 Dec 2014 10:17:43 +0000 (10:17 +0000)
commite726819bb2b5b960a50d2ae8d4c6fe85e70c99b7
tree2aec21f4c8774de3cb36dbf2acb3a73a5d66600e
parentef41e1f6b53db827a0d83f6b7620efc046d8cf5a
python: add python-codecs runtime dependency for python-json

A piece of JSON initialization code that runs when you "import json"
tries to use the hex-decoder, thus breaks if you do not have
python-codecs installed. Example:

    >>> import json
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "/usr/lib/python2.7/json/__init__.py", line 108, in <module>
        from .decoder import JSONDecoder
      File "/usr/lib/python2.7/json/decoder.py", line 24, in <module>
        NaN, PosInf, NegInf = _floatconstants()
      File "/usr/lib/python2.7/json/decoder.py", line 18, in _floatconstants
        _BYTES = '7FF80000000000007FF0000000000000'.decode('hex')
    LookupError: no codec search functions registered: can't find encoding

This patch adds a runtime dependency on python-codecs for python-json and
re-generates the python manifests for Python v2.7. Solves [YOCTO #7020].

(From OE-Core rev: 90fd48144f146f455b18372a9b061314ab3a3857)

Signed-off-by: Magnus Olsson <magnus@minimum.se>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/python/python-2.7-manifest.inc
scripts/contrib/python/generate-manifest-2.7.py