From 2dbf8f4ea4992ca33c272786f860d7fc291ba89b Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Wed, 11 Jul 2018 18:49:27 +0200 Subject: 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. --- meson_options.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson_options.txt') diff --git a/meson_options.txt b/meson_options.txt index 28244208..49726be6 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -17,3 +17,7 @@ option('gtk-doc', type: 'boolean', value: false, option('cairo-libname', type: 'string', description: 'Custom name for the cairo-gobject library name' ) + +option('python', type: 'string', value: 'python3', + description: 'Path or name of the Python interpreter to build for' +) -- cgit v1.2.1