]> code.ossystems Code Review - openembedded-core.git/commit
python[3]native: allow use of both native Python 2 and 3
authorRoss Burton <ross.burton@intel.com>
Tue, 31 Jul 2018 17:05:41 +0000 (18:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Aug 2018 08:30:06 +0000 (09:30 +0100)
commit96ccdadb8473daa3c9c2e1cb42fbdff1edd270d6
tree1e6ce8005769851eeb03c458215160379873af08
parent09917f582aa1a7b752fa96303e06f9f4712a1d86
python[3]native: allow use of both native Python 2 and 3

Instead of both classes using ${PYTHON_PN} (which is set by python-dir and
python3-dir), hardcode the right values so that it is possible to inherit both
pythonnative and python3native at the same time.

If both are inherited then both native Pythons are available, but the last to be
inherited will be the one to set PYTHON.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/python3native.bbclass
meta/classes/pythonnative.bbclass