]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: use python3 instead of python (v2)
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 26 Sep 2016 13:34:48 +0000 (16:34 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Sep 2016 08:01:33 +0000 (09:01 +0100)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/autotools.bbclass

index e5f527ec077422c6bd2cdd2e13fc804dcbeb15d3..ecbba9f603657619d3b7432edfdd6c9f5829504f 100644 (file)
@@ -85,7 +85,7 @@ AUTOTOOLS_AUXDIR ?= "${AUTOTOOLS_SCRIPT_PATH}"
 oe_runconf () {
        # Use relative path to avoid buildpaths in files
        cfgscript_name="`basename ${CONFIGURE_SCRIPT}`"
-       cfgscript=`python -c "import os; print(os.path.relpath(os.path.dirname('${CONFIGURE_SCRIPT}'), '.'))"`/$cfgscript_name
+       cfgscript=`python3 -c "import os; print(os.path.relpath(os.path.dirname('${CONFIGURE_SCRIPT}'), '.'))"`/$cfgscript_name
        if [ -x "$cfgscript" ] ; then
                bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
                if ! ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"; then