buildtools/wafsamba: Ensure we detect the correct python.
authorNoel Power <noel.power@suse.com>
Thu, 29 Nov 2018 15:12:10 +0000 (15:12 +0000)
committerNoel Power <npower@samba.org>
Mon, 10 Dec 2018 09:38:25 +0000 (10:38 +0100)
commit19ac50ba2d7d193816c79d44e472e8cf4acb8aeb
tree41af617120e1f88c5c359bf0654b72f628e31f7e
parentf4c0343dc4288e9cd00d7325633949020c3d300b
buildtools/wafsamba: Ensure we detect the correct python.

In order to support a default python3 build we need to ensure
we detect python3 if no PYTHON env variable is set up.

Currently we detect python with

conf.find_program('python', var='PYTHON', mandatory=mandatory)

which uses PYTHON as as hint and falls back to the program name
'python' otherwise

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_python.py