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>
This commit is contained in:
parent
30a56bce4f
commit
f8b4609882
1 changed files with 6 additions and 6 deletions
|
@ -108,14 +108,14 @@ endforeach
|
|||
|
||||
run_tests = find_program('run_tests.sh')
|
||||
|
||||
|
||||
env = [
|
||||
'PYTHON=' + py.path(),
|
||||
'PYTHONPATH=' + meson.source_root() / 'pylibfdt',
|
||||
]
|
||||
|
||||
env = []
|
||||
if not py.found()
|
||||
env += 'NO_PYTHON=1'
|
||||
else
|
||||
env += [
|
||||
'PYTHON=' + py.path(),
|
||||
'PYTHONPATH=' + meson.source_root() / 'pylibfdt',
|
||||
]
|
||||
endif
|
||||
if not yaml.found()
|
||||
env += 'NO_YAML=1'
|
||||
|
|
Loading…
Reference in a new issue