Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow installing GObject Introspection overrides to multiple python installations #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SparkyBluefang
Copy link
Contributor

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']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant