--- meson.build.orig	2025-09-19 04:50:40
+++ meson.build	2026-02-13 12:32:55
@@ -48,7 +48,7 @@
 is_os_cocoa = host_machine.system() == 'darwin'
 
 # Use the Python installation that Meson uses. Its version is >= 3.7.
-python3 = import('python').find_installation()
+python3 = find_program('@@PYTHON@@', version: '>=3.7')
 
 pkgconfig = import('pkgconfig')
 common_pkgconfig_vars = [
