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/1038>
This commit is contained in:
Nirbheek Chauhan 2022-12-27 21:19:53 +05:30 committed by Sebastian Dröge
parent 2045847bd6
commit 7db53aba22

View file

@ -4,7 +4,11 @@ project('gst-plugins-rs',
version: '0.9.0',
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()