build-styles/waf{,3}: make sure waf uses the correct python version

This commit is contained in:
Alessio Sergi 2018-08-09 19:53:32 +02:00
parent 3bee06926b
commit b0feeed60e
2 changed files with 6 additions and 6 deletions

View File

@ -4,17 +4,17 @@
do_configure() { do_configure() {
: ${configure_script:=waf} : ${configure_script:=waf}
python ${configure_script} configure --prefix=/usr ${configure_args} PYTHON=/usr/bin/python2 python2 ${configure_script} configure --prefix=/usr ${configure_args}
} }
do_build() { do_build() {
: ${configure_script:=waf} : ${configure_script:=waf}
python ${configure_script} build ${make_build_args} PYTHON=/usr/bin/python2 python2 ${configure_script} build ${make_build_args}
} }
do_install() { do_install() {
: ${configure_script:=waf} : ${configure_script:=waf}
python ${configure_script} install --destdir=${DESTDIR} ${make_install_args} PYTHON=/usr/bin/python2 python2 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
} }

View File

@ -4,17 +4,17 @@
do_configure() { do_configure() {
: ${configure_script:=waf} : ${configure_script:=waf}
PYTHON=python3 python3 ${configure_script} configure --prefix=/usr ${configure_args} PYTHON=/usr/bin/python3 python3 ${configure_script} configure --prefix=/usr ${configure_args}
} }
do_build() { do_build() {
: ${configure_script:=waf} : ${configure_script:=waf}
PYTHON=python3 python3 ${configure_script} build ${make_build_args} PYTHON=/usr/bin/python3 python3 ${configure_script} build ${make_build_args}
} }
do_install() { do_install() {
: ${configure_script:=waf} : ${configure_script:=waf}
PYTHON=python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args} PYTHON=/usr/bin/python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
} }