No need for parsing files - Meson searches for dependencies itself and downloads them when needed.
Pymol is a project that relies heavily on C/CPP extensions. So, I checked other projects in similar situations. Projects like scipy, numpy, scikit-learn and many more use Meson as their build system.