mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
PY3: switch current build to use python3
Make sure default make and configure for all now defaults to building with python3. To build a samba (or sub component e.g. talloc etc.) with python3 ./configure && make To build a samba (or sub component e.g. talloc etc.) with python2 PYTHON=python ./configure && PYTHON=python make Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
3e017aa7e5
commit
a660b7fb8e
2
Makefile
2
Makefile
@ -1,6 +1,6 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
|
||||||
PYTHON?=python
|
PYTHON?=python3
|
||||||
WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
|
WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
|
||||||
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -13,5 +13,5 @@ export JOBS
|
|||||||
unset LD_PRELOAD
|
unset LD_PRELOAD
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
${PYTHON:=python} $WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
|
||||||
WAF=WAF_MAKE=1 PATH=buildtools/bin:../buildtools/bin:$$PATH waf
|
PYTHON?=python3
|
||||||
|
WAF_BINARY=$(PYTHON) ../buildtools/bin/waf
|
||||||
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(WAF) build
|
$(WAF) build
|
||||||
|
2
ctdb/configure
vendored
2
ctdb/configure
vendored
@ -11,5 +11,5 @@ JOBS=1
|
|||||||
export JOBS
|
export JOBS
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
${PYTHON:=python} $WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
|
||||||
WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
|
PYTHON?=python3
|
||||||
|
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||||
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(WAF) build
|
$(WAF) build
|
||||||
|
2
lib/ldb/configure
vendored
2
lib/ldb/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
|||||||
export JOBS
|
export JOBS
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
$WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
|
||||||
WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
|
PYTHON?=python3
|
||||||
|
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||||
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(WAF) build
|
$(WAF) build
|
||||||
|
2
lib/replace/configure
vendored
2
lib/replace/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
|||||||
export JOBS
|
export JOBS
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
$WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
|
||||||
WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
|
PYTHON?=python3
|
||||||
|
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||||
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(WAF) build
|
$(WAF) build
|
||||||
|
2
lib/talloc/configure
vendored
2
lib/talloc/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
|||||||
export JOBS
|
export JOBS
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
$WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
|
||||||
WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
|
PYTHON?=python3
|
||||||
|
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||||
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(WAF) build
|
$(WAF) build
|
||||||
|
2
lib/tdb/configure
vendored
2
lib/tdb/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
|||||||
export JOBS
|
export JOBS
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
$WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# simple makefile wrapper to run waf
|
# simple makefile wrapper to run waf
|
||||||
|
PYTHON?=python3
|
||||||
WAF=WAF_MAKE=1 PATH=buildtools/bin:../../buildtools/bin:$$PATH waf
|
WAF_BINARY=$(PYTHON) ../../buildtools/bin/waf
|
||||||
|
WAF=WAF_MAKE=1 $(WAF_BINARY)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
$(WAF) build
|
$(WAF) build
|
||||||
|
2
lib/tevent/configure
vendored
2
lib/tevent/configure
vendored
@ -17,5 +17,5 @@ JOBS=1
|
|||||||
export JOBS
|
export JOBS
|
||||||
|
|
||||||
cd . || exit 1
|
cd . || exit 1
|
||||||
$WAF configure "$@" || exit 1
|
${PYTHON:=python3} $WAF configure "$@" || exit 1
|
||||||
cd $PREVPATH
|
cd $PREVPATH
|
||||||
|
Loading…
Reference in New Issue
Block a user