meson: use python.get_install_dir() to find the pygobject overrides dir
authorChristoph Reiter <reiter.christoph@gmail.com>
Sat, 10 Sep 2022 17:16:39 +0000 (19:16 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 12 Sep 2022 00:45:40 +0000 (00:45 +0000)
commit472dc4b74332a089245159534a5932b0f314c749
treee497000025a573b651852bc6662192fd34437d4e
parent46dbf194bdd8ae164701ced1093eca37b2898631
meson: use python.get_install_dir() to find the pygobject overrides dir

Instead of trying to hardcode site-packages paths for different platforms
just use python.get_install_dir() from meson and let it deal with the rest.
Also no longer try to import pygobject, which would otherwise not be
required at build time.

python.get_install_dir() was at the beginning broken on Windows, but
that was fixed in 0.60 via https://github.com/mesonbuild/meson/pull/9156
and since ges now requires >0.60 this can be ignored.

This change was motivated by the install path being wrong under MSYS2, where
the unix install layout is used and the detection code not taking that into
account.

This MR is a continuation of https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/230
see the discussion there for extra context.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3012>
subprojects/gst-editing-services/meson.build