Patchwork [2/3] package-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE

login
register
mail settings
Submitter Andrei Gherzan
Date April 11, 2012, 2:26 p.m.
Message ID <06c6cbda1fea51b37677f2cbf4fb98f26ad2b39f.1334154247.git.andrei@gherzan.ro>
Download mbox | patch
Permalink /patch/25603/
State Accepted
Commit 230b235329bcaca1a95afd89801d28768aff483b
Headers show

Comments

Andrei Gherzan - April 11, 2012, 2:26 p.m.
Export PYTHONHOME to ${STAGING_DIR_NATIVE}/usr. In this way python will search
for modules in native sysroot.

[YOCTO #2134]

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-core/meta/package-index.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb
index bf3922f..96d54e3 100644
--- a/meta/recipes-core/meta/package-index.bb
+++ b/meta/recipes-core/meta/package-index.bb
@@ -21,6 +21,9 @@  do_populate_sysroot[noexec] = "1"
 do_package_index[nostamp] = "1"
 do_package_index[depends] += "${PACKAGEINDEXDEPS}"
 
+# Force NATIVE python to use modules from STAGING_DIR_NATIVE
+export PYTHONHOME = "${STAGING_DIR_NATIVE}/usr"
+
 do_package_index() {
 	set -ex
 	${PACKAGEINDEXES}