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

This commit is contained in:
Jussi Pakkanen 2017-01-23 21:21:01 +02:00
parent 5e4f04e8f1
commit 080674371f
1 changed files with 3 additions and 2 deletions

View File

@ -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],
)