Author xdegaye
Recipients Alex.Willmer, bill9889, doko, iliis, ned.deily, steve.dower, wscullin, xdegaye
Date 2020-03-20.08:29:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Steve wrote:
> In my build, I've set PYTHON_FOR_BUILD=python3.8

This will not work, PYTHON_FOR_BUILD when cross-compiling is set by configure as:

PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp

FWIW there is no problem cross-compiling Python and the standard library extension modules on Android, see for example the 'termux' Android application and its Python build.

On the other hand there are problems when cross-compiling third party extension modules due to:
* PYTHON_FOR_BUILD must be set correctly.
* distutils is still refering to sysconfig values of the build system instead of the target system.
But handles this correctly and does not need to be modified.
Date User Action Args
2020-03-20 08:29:15xdegayesetrecipients: + xdegaye, doko, ned.deily, steve.dower, Alex.Willmer, bill9889, wscullin, iliis
2020-03-20 08:29:15xdegayesetmessageid: <>
2020-03-20 08:29:15xdegayelinkissue22699 messages
2020-03-20 08:29:15xdegayecreate