From 72fa5fa922c6c6df49e80919157a141173f8d0a3 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 27 Dec 2022 21:19:53 +0530 Subject: [PATCH] meson: Require tomllib / tomli python modules explicitly These are required by dependencies.py Part-of: --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 05dec107..e700d2ee 100644 --- a/meson.build +++ b/meson.build @@ -4,7 +4,11 @@ project('gst-plugins-rs', version: '0.9.0-alpha.1', meson_version : '>= 0.60') -python = import('python').find_installation() +# dependencies.py needs a toml parsing module +python = import('python').find_installation(modules: ['tomllib'], required: false) +if not python.found() + python = import('python').find_installation(modules: ['tomli']) +endif fs = import('fs') host_system = host_machine.system()