diff mbox series

[2/2] blueprint-compiler: build using mesonpy

Message ID 20261201181710.3598526-2-ross.burton@arm.com
State New
Headers show
Series [1/2] blueprint-compiler: don't split the packaging | expand

Commit Message

Ross Burton Dec. 1, 2026, 6:17 p.m. UTC
This way mesonpy builds a wheel which we install with the conventional
pep517 classes, which will fix the interpreter on the entry point for us.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../blueprint-compiler/blueprint-compiler_0.22.2.bb        | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.22.2.bb b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.22.2.bb
index 82c1e61623f..4fd655f335d 100644
--- a/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.22.2.bb
+++ b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.22.2.bb
@@ -6,7 +6,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=3000208d539ec061b899bce1d9ce9404"
 SRC_URI = "git://gitlab.gnome.org/GNOME/blueprint-compiler;protocol=https;branch=blueprint-0-22;tag=v${PV}"
 SRCREV = "ed35ac74de0c1bb1f5e852410b97edd1f08904c9"
 
-inherit meson pkgconfig python3-dir gobject-introspection-data
+inherit python_mesonpy pkgconfig gobject-introspection-data
 
 # The compiler needs python3-pygobject on target, which is skipped without
 # GI data (which also depends on qemu-usermode), so skip along with it.
@@ -15,11 +15,6 @@  python() {
         raise bb.parse.SkipRecipe("GI not available")
 }
 
-do_install:append () {
-    # Meson encodes the full path of the build python in the shebang
-    sed -i -e '1s|^#!.*|#!${USRBINPATH}/env python3|' ${D}${bindir}/blueprint-compiler
-}
-
 RDEPENDS:${PN} = "python3-pygobject"
 
 BBCLASSEXTEND = "native"