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"
