glib/gio/gdbus-2.0/codegen
Calvin Walton 013980d839 Use the python found by meson as the interpreter for installed scripts
The python interpreter found by `/usr/bin/env python3` is not
necessarily the same installation as the one that's found by meson's
`pymod.find_installation('python')`. This means that even though meson
is checking that the python installation it found includes the
'packaging' module, the scripts might not have access to that module
when run.

For distribution packaging, it's usually desirable to have python script
interpreters be fully specified paths, rather than use `/usr/bin/env`,
to ensure the scripts run using the expected python installation (i.e.
the one where the python 'packaging' dependency is installed).

The easiest way to fix this is to set the script interpreter to the
`full_path()` of the python interpreter found by meson. The specific
python interpreter that will be used can be selected through the use of
a meson machine file by overriding the "python" program. Many
distributions already have this set up using meson packaging helpers.
2024-03-25 15:17:59 -04:00
..
__init__.py py: Reformat all Python files consistently 2020-11-17 15:50:07 +00:00
.flake8 Add .flake8 file 2022-02-15 11:47:30 +00:00
.gitignore Git should ignore generated config.py file 2017-11-20 10:17:01 +00:00
codegen_docbook.py gdbus-codegen: preserve relative indentation in doc comments 2023-08-14 23:46:09 -03:00
codegen_main.py gdbus-codegen: If writing body to stdout, don't try to include header 2024-02-06 14:06:45 +00:00
codegen_md.py Shorten the title for D-Bus interface docs 2023-12-29 01:02:00 +00:00
codegen_rst.py Shorten the title for D-Bus interface docs 2023-12-29 01:02:00 +00:00
codegen.py gdbus-codegen: If writing body to stdout, don't try to include header 2024-02-06 14:06:45 +00:00
config.py.in gdbus-codegen: Add --glib-max-allowed argument 2020-01-27 10:42:26 +00:00
dbustypes.py gdbus-codegen: Error on invalid dbus types 2023-07-12 15:33:22 -07:00
gdbus-codegen.in Use the python found by meson as the interpreter for installed scripts 2024-03-25 15:17:59 -04:00
meson.build Use the python found by meson as the interpreter for installed scripts 2024-03-25 15:17:59 -04:00
parser.py gdbus-codegen: preserve relative indentation in doc comments 2023-08-14 23:46:09 -03:00
utils.py Switch from the deprecated distutils module to the packaging module 2023-12-05 14:18:10 +00:00