aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-01-23 21:21:01 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-25 21:34:54 +0200
commit080674371f990cc40fd817f41a5e0d07c6acc2f9 (patch)
treedfea7a1779c69ea0b221a0b7e7f6fea7d07f8db4
parent5e4f04e8f1ea57ade3b96d6f25184f6e95f8c4d8 (diff)
downloadmeson-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.build5
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],
)