Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=945398fefb05e5c214bd2f31f1ecc4d31d15de99
commit 945398fefb05e5c214bd2f31f1ecc4d31d15de99 Author: crazy <[email protected]> Date: Mon Jun 20 16:03:31 2016 +0200 Fbuildsystem_python_setup() * added _F_python_version so one can tell in FB * _F_python_version="python3" and use auto magic without adding * weird build() diff --git a/source/include/util.sh b/source/include/util.sh index 04e4716..6aab5cb 100644 --- a/source/include/util.sh +++ b/source/include/util.sh @@ -976,6 +976,12 @@ Fbuildsystem_python_setup() { local command="$1" shift + if [ -z "$_F_python_version" ]; then + _python="python" + else + _python="$_F_python_version" + fi + case "$command" in 'probe') test -f setup.py @@ -983,11 +989,11 @@ Fbuildsystem_python_setup() { ;; 'make') # does configure and build - Fexec python setup.py build "$@" + Fexec "$_python" setup.py build "$@" return $? ;; 'install') - Fexec python setup.py install --prefix "$Fprefix" --root "$Fdestdir" "$@" + Fexec "$_python" setup.py install --prefix "$Fprefix" --root "$Fdestdir" "$@" return $? ;; *) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
