diff mbox series

[1/5] classes/meson: set python install locations in the cross file

Message ID 20260701161313.981064-1-ross.burton@arm.com
State New
Headers show
Series [1/5] classes/meson: set python install locations in the cross file | expand

Commit Message

Ross Burton July 1, 2026, 4:13 p.m. UTC
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(+)
diff mbox series

Patch

diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index 9bed293603c..f20fa61b3cc 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