build: Move python detection back into waf (instead of in configure and Makefile)
authorAndrew Bartlett <abartlet@samba.org>
Tue, 11 Dec 2018 18:10:30 +0000 (07:10 +1300)
committerNoel Power <npower@samba.org>
Fri, 14 Dec 2018 13:40:19 +0000 (14:40 +0100)
commit5ddff307b4af5c82d5064745f5bd2c33bd340ced
tree3f1d81d3e862bfe5f47c2e66684f2115d06554cc
parent31957c7fe9d0f67bef08177e982043a23b172c7d
build: Move python detection back into waf (instead of in configure and Makefile)

This avoids creating a mini-configure in the configure script.

Users wishing to use python2 to build need to specify PYTHON=
to both ./configure and make

After we merged the python3 change, it became clear that relying on systems prefixing
the correct python just causes trouble and make debugging harder, so only use $PYTHON
for the override, not the default case

This essentially reverts a660b7fb8e519bd3be558fd0425bff8f287fca1f but
leaves the files more consistent.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
15 files changed:
Makefile
buildtools/bin/waf
configure
ctdb/Makefile
ctdb/configure
lib/ldb/Makefile
lib/ldb/configure
lib/replace/Makefile
lib/replace/configure
lib/talloc/Makefile
lib/talloc/configure
lib/tdb/Makefile
lib/tdb/configure
lib/tevent/Makefile
lib/tevent/configure