From: Ross Burton Date: Thu, 2 Jul 2026 12:56:22 +0000 (+0100) Subject: classes/meson: set python install locations in the cross file X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77c5ed98db82eec106039e7660dcbc7ebd590ba6;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git classes/meson: set python install locations in the cross file Instead of needing recipes to inherit python3targetconfig so that Python when asked will report the correct target directory to install into, we can pass the right directory via meson's cross file. This means recipes that currently inherit python3targetconfig to get this path no longer need to. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index a464359110..553f63872d 100644 --- a/meta/classes-recipe/meson.bbclass +++ b/meta/classes-recipe/meson.bbclass @@ -94,6 +94,8 @@ c_args = ${@meson_array('CFLAGS', d)} c_link_args = ${@meson_array('LDFLAGS', d)} cpp_args = ${@meson_array('CXXFLAGS', d)} cpp_link_args = ${@meson_array('LDFLAGS', d)} +python.platlibdir = '${PYTHON_SITEPACKAGES_DIR}' +python.purelibdir = '${PYTHON_SITEPACKAGES_DIR}' [properties] needs_exe_wrapper = true