mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
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 a660b7fb8e
but
leaves the files more consistent.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
This commit is contained in:
parent
31957c7fe9
commit
5ddff307b4
1
Makefile
1
Makefile
@ -1,6 +1,5 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
|
||||
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
buildtools/bin/waf
vendored
2
buildtools/bin/waf
vendored
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
# encoding: latin-1
|
||||
# Thomas Nagy, 2005-2018
|
||||
#
|
||||
|
2
configure
vendored
2
configure
vendored
@ -13,5 +13,5 @@ export JOBS
|
||||
unset LD_PRELOAD
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
@ -1,6 +1,5 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ../buildtools/bin/waf
|
||||
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
ctdb/configure
vendored
2
ctdb/configure
vendored
@ -11,5 +11,5 @@ JOBS=1
|
||||
export JOBS
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
@ -1,6 +1,5 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
lib/ldb/configure
vendored
2
lib/ldb/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
||||
export JOBS
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
@ -1,6 +1,5 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
lib/replace/configure
vendored
2
lib/replace/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
||||
export JOBS
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
@ -1,6 +1,5 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
lib/talloc/configure
vendored
2
lib/talloc/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
||||
export JOBS
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
@ -1,6 +1,5 @@
|
||||
# simple makefile wrapper to run waf
|
||||
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
lib/tdb/configure
vendored
2
lib/tdb/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
||||
export JOBS
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
@ -1,5 +1,4 @@
|
||||
# simple makefile wrapper to run waf
|
||||
PYTHON?=python3
|
||||
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||
WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
|
||||
|
||||
|
2
lib/tevent/configure
vendored
2
lib/tevent/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
||||
export JOBS
|
||||
|
||||
cd . || exit 1
|
||||
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||
$PYTHON $WAF configure "$@" || exit 1
|
||||
cd $PREVPATH
|
||||
|
Loading…
Reference in New Issue
Block a user