[oe-commits] [openembedded-core] 02/23: scripts/oe-buildenv-internal: allow experimental python3 support

git at git.openembedded.org git at git.openembedded.org
Mon May 30 15:01:56 UTC 2016


rpurdie pushed a commit to branch python3
in repository openembedded-core.

commit 16e347f69f40e7fbeae7f5b9e371d8fec7d5497d
Author: Tim Orling <timothy.t.orling at linux.intel.com>
AuthorDate: Wed May 4 19:32:54 2016 -0700

    scripts/oe-buildenv-internal: allow experimental python3 support
    
    Signed-off-by: Tim Orling <timothy.t.orling at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/oe-buildenv-internal | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index 81ee784..4382ca5 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -35,17 +35,19 @@ fi
 # can offer a meaningful error message.
 py_v3_check=$(/usr/bin/env python --version 2>&1 | grep "Python 3")
 if [ -n "$py_v3_check" ]; then
-    echo >&2 "Bitbake is not compatible with python v3"
-    echo >&2 "Please set up python v2 as your default python interpreter"
-    return 1
+    #echo >&2 "Bitbake is not compatible with python v3"
+    #echo >&2 "Please set up python v2 as your default python interpreter"
+    #return 1
+    echo >&2 "Experimental python v3 support"
+    py_v3="True"
 fi
 unset py_v3_check
 
 # Similarly, we now have code that doesn't parse correctly with older
 # versions of Python, and rather than fixing that and being eternally
 # vigilant for any other new feature use, just check the version here.
-py_v26_check=$(python -c 'import sys; print sys.version_info >= (2,7,3)')
-if [ "$py_v26_check" != "True" ]; then
+py_v26_check=$(python -c 'import sys; print(sys.version_info >= (2,7,3))')
+if [ "$py_v26_check" != "True" ] &&  [ "$py_v3" != "True" ]; then
     echo >&2 "BitBake requires Python 2.7.3 or later"
     return 1
 fi

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list