From 3720291ed255ef061aa231414b57848294e1e4f9 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 18 Aug 2017 15:09:17 +0300 Subject: qtivi: export envs for ivigenerator pip3 is run during install phase, so we need to have the environment variables available also then. Change-Id: I43aa285a5da884a0db4b651fb6a0eeb832daef51 Reviewed-by: Dominik Holland --- recipes-qt/automotive/qtivi_git.bb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/recipes-qt/automotive/qtivi_git.bb b/recipes-qt/automotive/qtivi_git.bb index 6b364d3..0f49d5d 100644 --- a/recipes-qt/automotive/qtivi_git.bb +++ b/recipes-qt/automotive/qtivi_git.bb @@ -68,7 +68,7 @@ PACKAGECONFIG_class-nativesdk ??= "${PACKAGECONFIG_class-native}" EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS} ${@bb.utils.contains_any('PACKAGECONFIG', 'ivigenerator ivigenerator-native', '', 'QMAKE_EXTRA_ARGS+=-no-ivigenerator', d)}" -do_compile_prepend() { +set_python_paths() { # Otherwise pip might cache or reuse something from our home folder export HOME="${STAGING_DATADIR_NATIVE}" # This is needed as otherwise the virtualenv tries to use the libs from the host @@ -76,6 +76,13 @@ do_compile_prepend() { # Let qtivi use the python3-native binaries export PYTHON3_PATH="${STAGING_BINDIR_NATIVE}/python3-native" } +do_compile_prepend() { + set_python_paths +} +do_install_prepend() { + set_python_paths +} + BBCLASSEXTEND += "native nativesdk" -- cgit v1.2.3-54-g00ecf