]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/meson: set python install locations in the cross file
authorRoss Burton <ross.burton@arm.com>
Thu, 2 Jul 2026 12:56:22 +0000 (13:56 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Jul 2026 16:15:09 +0000 (17:15 +0100)
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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/meson.bbclass

index a464359110371f804f9e4c40a2c8a3d5def83670..553f63872dedef51aea4c5d57d9e413cb5029407 100644 (file)
@@ -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