[issue3754] cross-compilation support for python build

Roumen Petrov report at bugs.python.org
Wed Jun 6 23:54:49 CEST 2012


Roumen Petrov <bugtrack at roumenpetrov.info> added the comment:

About Android issue with wchar still is applicable. So issue is not exactly as in 12010. Even with changed size  multi-byte functions just return return result like a byte array, i.e. without conversion.  Since python try to validate wide character at some point will be raised exception invalid multi-byte.
Only for test work around could be implement - "fake" conversion functions that just store char into wchar array and to use ascii codec.
Next is that lack of locale support and lack of locale information(structure is without members). 
Another issue is that loader does not resolve indirect dependencies. Many python modules depend from math library but are not linked with it and math functions are resolved later. This does not work on android and those modules must be explicitly linked to math library.
Also posix semaphores must be disabled.

As result python 3k regression tests except those that require locale support or ctype will pass.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3754>
_______________________________________


More information about the Python-bugs-list mailing list