kumquat-buildroot/package/python
Chris Smart 01464f56bd package/python: apply unicode config to host build
Currently the host build of Python 2 defaults to narrow unicode (UCS2),
ignoring the BR2_PACKAGE_PYTHON_UCS4 configuration option which may be
set to wide (UCS4).

This results in host and target Python packages which are incompatible
in subtle ways.

For example, installing wheels into the target fails when they are made
with the host python, citing incompatibility (as can be seen by the
package tags which may be "cp27u-manylinux1" instead of
"cp27mu-manylinux1").

Compiling the host Python 2 with the same UCS configuration as the
target ensures that the packages are compatible (and the tags match).

This does not affect Python 3 as support for narrow unicode was
deprecated in version 3.3, see https://www.python.org/dev/peps/pep-0393/

Thanks to Tony Breeds <tony@bakeyournoodle.com> for reporting this.

Signed-off-by: Chris Smart <mail@csmart.io>
[Thomas: add comment in the code.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-02-23 23:03:19 +01:00
..
001-remove-host-header-path.patch
002-fix-get-python-inc.patch
004-sysconfigdata-install-location.patch
005-pyc-pyo-conditional.patch
006-cross-compile-getaddrinfo.patch
007-disable-extensions.patch
008-distutils-use-python-sysroot.patch
009-no-termcap-host-path.patch
010-fix-python-config.patch
011-remove-python-symlink.patch
013-dont-add-multiarch-path.patch
014-abort-on-failed-modules.patch
015-fix-sqlite-without-threads.patch
016-serial-ioctl-workaround.patch
017-distutils-scripts-dont-adjust-shebang.patch
018-fix-add-gcc-paths-logic.patch
100-optional-test-modules.patch
101-optional-pydoc.patch
102-optional-2to3.patch
103-optional-sqlite.patch
104-optional-tk.patch
105-optional-curses.patch
106-optional-expat.patch
107-optional-codecs-cjk.patch
108-optional-nis.patch
109-optional-unicodedata.patch
110-optional-db.patch
111-optional-ssl.patch
112-optional-bzip2.patch
113-optional-zlib.patch
114-remove-idle-editor.patch
115-optional-ossaudiodev.patch
Config.in
python.hash
python.mk