]> code.ossystems Code Review - openembedded-core.git/commit
scons: inherit python3native
authorAnuj Mittal <anuj.mittal@intel.com>
Thu, 13 Jun 2019 00:49:10 +0000 (08:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 14 Jun 2019 21:47:43 +0000 (22:47 +0100)
commit44f303ba9fb193a985e8e4b7c6962883ae3970d1
tree5a78c96af1863807c3e1f8581a296ca48f03bbde
parent1522f09a4dd21fef177d514cb4d37e94d140dd33
scons: inherit python3native

scons tries to get build time vars by loading sysconfigdata. Inherit
python3native instead of using host python and unset
_PYTHON_SYSCONFIGDATA_NAME to avoid the need to depend on target
python3 for sysconfigdata when using scons to build.

Avoids build errors on still supported CentOS 7:

| DEBUG: Executing shell function do_compile
| scons: *** SCons version 3.0.5 does not run under Python version
3.4.8.
| Python 2.7 or >= 3.5 is required.

Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/scons.bbclass