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 <[email protected]>
---
 meta/classes-recipe/meson.bbclass | 2 ++
 1 file changed, 2 insertions(+)

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
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#239991): 
https://lists.openembedded.org/g/openembedded-core/message/239991
Mute This Topic: https://lists.openembedded.org/mt/120068365/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to