From 230b235329bcaca1a95afd89801d28768aff483b Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Wed, 11 Apr 2012 17:26:16 +0300 Subject: package-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE 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 Signed-off-by: Richard Purdie --- meta/recipes-core/meta/package-index.bb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/recipes-core') diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb index bf3922f6d..96d54e366 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} -- cgit v1.2.3