diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-11 18:49:27 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-07-11 20:44:52 +0200 |
commit | 2dbf8f4ea4992ca33c272786f860d7fc291ba89b (patch) | |
tree | fca28df47c9d2e3afc991c19de68fe80db477e18 /tools/meson.build | |
parent | 4542321c383304807228f204de600aa64944c87e (diff) | |
download | gobject-introspection-2dbf8f4ea4992ca33c272786f860d7fc291ba89b.tar.gz |
meson: Add a "python" option to make the python to build against configurable
This allows us to build with Python 2 and run tests with it.
This requires the new "python" meson module which was added in 0.46.0 so
bump the required meson version (glib needs a newer one anyway).
Also fixes a small test error under Python 2.
Diffstat (limited to 'tools/meson.build')
-rw-r--r-- | tools/meson.build | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/meson.build b/tools/meson.build index 8971a9d5..aaf4bc84 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -1,6 +1,5 @@ libdir_abs = join_paths(get_option('prefix'), get_option('libdir')) datadir_abs = join_paths(get_option('prefix'), get_option('datadir')) -python_path = python3.path() tools = [ ['g-ir-scanner', 'scannermain', 'scanner_main'], @@ -15,7 +14,7 @@ foreach tool : tools tools_conf = configuration_data() tools_conf.set('libdir', libdir_abs) tools_conf.set('datarootdir', datadir_abs) - tools_conf.set('PYTHON', python_path) + tools_conf.set('PYTHON', 'python' + python.language_version()) tools_conf.set('TOOL_MODULE', tool[1]) tools_conf.set('TOOL_FUNCTION', tool[2]) |