linuxmint / xapp

Cross-desktop libraries and common resources
GNU Lesser General Public License v3.0
126 stars 44 forks source link

Allow installing GObject Introspection overrides to multiple python installations #183

Closed SparkyBluefang closed 1 week ago

SparkyBluefang commented 2 months ago

Allow installing GObject Introspection overrides to multiple system python installations. This is something Gentoo supports (I'm not sure about other distros) so this has made packaging a little messy.

Switching py-overrides-dir to array allows for passing multiple paths as a comma separated string, and should maintain compatibility with existing build harnesses.

This also switches from find_program to python.find_installation and adds a python_target to allow specifying multiple installation targets instead of a list of paths. I defaulted python_target to just python3, as I assume python and python3 refer to the same python installation on modern systems. This also matches the default for python3-xapp.

meson setup ... -Dpython_target=python3.11,python3.12 ...
Message: PyGObject overrides dirs: ['/usr/lib/python3.11/site-packages/gi/overrides', '/usr/lib/python3.12/site-packages/gi/overrides']