meson: Require tomllib / tomli python modules explicitly

These are required by dependencies.py

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1028>
This commit is contained in:
Nirbheek Chauhan 2022-12-27 21:19:53 +05:30 committed by GStreamer Marge Bot
parent ae9ac872c0
commit 72fa5fa922

View file

@ -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()