[Buildroot] [PATCH] host python/python3: conditionally disable unicodedata

Thomas De Schampheleire patrickdepinguin at gmail.com
Thu Feb 13 09:15:14 UTC 2014


Hi Peter,

On Fri, Feb 7, 2014 at 11:28 AM, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
> Dear Thomas De Schampheleire,
>
> On Fri, 07 Feb 2014 11:16:05 +0100, Thomas De Schampheleire wrote:
>> The host python always had --disable-unicodedata, regardless of the
>> corresponding configuration option BR2_PACKAGE_PYTHON_UNICODEDATA.
>> Since the host python is used to byte-compile python modules, this meant
>> that such modules could not contain unicode strings. For example, following
>> statement in a python module:
>>     print u"\N{SOLIDUS}"
>>
>> would cause the byte-compilation to fail with message:
>>     SyntaxError: ("(unicode error) \\N escapes not supported (can't load
>>     unicodedata module)",
>>
>> Instead, conditionally disable unicodedata based on
>> BR2_PACKAGE_PYTHON_UNICODEDATA, also for the host python.
>>
>> This fixes bug #6542 (https://bugs.busybox.net/show_bug.cgi?id=6542)
>>
>> Reported-by: Gernot Vormayr <gvormayr at gmail.com>
>> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
>
> For information, my upcoming patch series that bumps Python uses
> --enable-unicodedata unconditionally for the host python, because
> recent versions of python-setuptools need unicodedata.
>

I think this patch should still be part of 2014.02.

Best regards,
Thomas



More information about the buildroot mailing list