build-styles/waf{,3}: make sure waf uses the correct python version
This commit is contained in:
parent
3bee06926b
commit
b0feeed60e
2 changed files with 6 additions and 6 deletions
|
@ -4,17 +4,17 @@
|
|||
do_configure() {
|
||||
: ${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() {
|
||||
: ${configure_script:=waf}
|
||||
|
||||
python ${configure_script} build ${make_build_args}
|
||||
PYTHON=/usr/bin/python2 python2 ${configure_script} build ${make_build_args}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
: ${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}
|
||||
}
|
||||
|
|
|
@ -4,17 +4,17 @@
|
|||
do_configure() {
|
||||
: ${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() {
|
||||
: ${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() {
|
||||
: ${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}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue