This was removed all together in af4ade37 "meson: use new python module".
And add -Dlibpython-dir option for the cases the logic fails.
-Dlibpython-dir
cc @meh @hgr