diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-23 21:21:01 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-25 21:34:54 +0200 |
commit | 080674371f990cc40fd817f41a5e0d07c6acc2f9 (patch) | |
tree | dfea7a1779c69ea0b221a0b7e7f6fea7d07f8db4 | |
parent | 5e4f04e8f1ea57ade3b96d6f25184f6e95f8c4d8 (diff) | |
download | meson-080674371f990cc40fd817f41a5e0d07c6acc2f9.zip meson-080674371f990cc40fd817f41a5e0d07c6acc2f9.tar.gz meson-080674371f990cc40fd817f41a5e0d07c6acc2f9.tar.bz2 |
Use Python3 explicitly on this test because shutil.which does not exist on Python 2.
-rw-r--r-- | test cases/common/103 manygen/subdir/meson.build | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test cases/common/103 manygen/subdir/meson.build b/test cases/common/103 manygen/subdir/meson.build index 3036899..73b4ff7 100644 --- a/test cases/common/103 manygen/subdir/meson.build +++ b/test cases/common/103 manygen/subdir/meson.build @@ -1,4 +1,5 @@ -gen = find_program('manygen.py') +gen = files('manygen.py') +py3_bin = import('python3').find_python() buildtype = get_option('buildtype') buildtype_args = '-Dfooxxx' # a useless compiler argument @@ -20,5 +21,5 @@ endif generated = custom_target('manygen', output : outfiles, input : ['funcinfo.def'], - command : [gen, '@INPUT@', '@OUTDIR@', buildtype_args], + command : [py3_bin, gen[0], '@INPUT@', '@OUTDIR@', buildtype_args], ) |