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

Merged
merged 1 commit into from
Sep 2, 2024

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

@mtwebster mtwebster merged commit 4ffed1b into linuxmint:master Sep 2, 2024
2 checks passed
@SparkyBluefang SparkyBluefang deleted the python-multi-target branch September 4, 2024 05:56
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.

2 participants