Use Python3 explicitly on this test because shutil.which does not exist on Python 2.

pull/1338/head
Jussi Pakkanen 8 years ago
parent 5e4f04e8f1
commit 080674371f
  1. 5
      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],
)

Loading…
Cancel
Save