diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-20 13:41:55 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-20 13:45:49 +0200 |
commit | f7735f9f9f997746c27199a37dc869ed7cd143b4 (patch) | |
tree | de09e52bd6afd970af8b1974d2465286fefe15ec /tools | |
parent | 1e28898fb17c393fbab9ccf2851297b4a04f5a1f (diff) | |
download | gobject-introspection-f7735f9f9f997746c27199a37dc869ed7cd143b4.tar.gz |
meson: Just use python2/python3 in the tool shebang line
So we end up using the same version as glib will be using.
See glib!187.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/meson.build b/tools/meson.build index aaf4bc84..ea8ccc3a 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -9,12 +9,13 @@ if get_option('doctool') tools += [['g-ir-doc-tool', 'docmain', 'doc_main']] endif +python_name = 'python@0@'.format(python.language_version().split('.')[0]) tool_output = [] foreach tool : tools tools_conf = configuration_data() tools_conf.set('libdir', libdir_abs) tools_conf.set('datarootdir', datadir_abs) - tools_conf.set('PYTHON', 'python' + python.language_version()) + tools_conf.set('PYTHON', python_name) tools_conf.set('TOOL_MODULE', tool[1]) tools_conf.set('TOOL_FUNCTION', tool[2]) |