meson: do not assume python is installed, skip tests
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201207130055.462734-3-marcandre.lureau@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
parent
30a56bce4f
commit
f8b4609882
|
@ -108,14 +108,14 @@ endforeach
|
||||||
|
|
||||||
run_tests = find_program('run_tests.sh')
|
run_tests = find_program('run_tests.sh')
|
||||||
|
|
||||||
|
env = []
|
||||||
env = [
|
|
||||||
'PYTHON=' + py.path(),
|
|
||||||
'PYTHONPATH=' + meson.source_root() / 'pylibfdt',
|
|
||||||
]
|
|
||||||
|
|
||||||
if not py.found()
|
if not py.found()
|
||||||
env += 'NO_PYTHON=1'
|
env += 'NO_PYTHON=1'
|
||||||
|
else
|
||||||
|
env += [
|
||||||
|
'PYTHON=' + py.path(),
|
||||||
|
'PYTHONPATH=' + meson.source_root() / 'pylibfdt',
|
||||||
|
]
|
||||||
endif
|
endif
|
||||||
if not yaml.found()
|
if not yaml.found()
|
||||||
env += 'NO_YAML=1'
|
env += 'NO_YAML=1'
|
||||||
|
|
Loading…
Reference in New Issue