[oe-commits] [openembedded-core] 22/22: python3native: set PYTHON_EXECUTABLE for CMake

git at git.openembedded.org git at git.openembedded.org
Wed Dec 4 12:33:18 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit afb8d456360d86254ab00f05866c34d947d02749
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Nov 28 10:33:07 2019 +0000

    python3native: set PYTHON_EXECUTABLE for CMake
    
    This ensures cmake uses the correct python binary rather than
    potentially, the host system one.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/python3native.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass
index d98fb4c..182c11a 100644
--- a/meta/classes/python3native.bbclass
+++ b/meta/classes/python3native.bbclass
@@ -1,6 +1,8 @@
 inherit python3-dir
 
 PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3"
+# PYTHON_EXECUTABLE is used by cmake
+PYTHON_EXECUTABLE="${PYTHON}"
 EXTRANATIVEPATH += "python3-native"
 DEPENDS_append = " python3-native "
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list