| Message ID | 20260702125627.977563-1-ross.burton@arm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [v2,1/6] classes/meson: set python install locations in the cross file | expand |
diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index a4643591103..553f63872de 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
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> --- meta/classes-recipe/meson.bbclass | 2 ++ 1 file changed, 2 insertions(+)