summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/bitbake9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/bitbake b/scripts/bitbake
index 587428c589..1c8d4ebe19 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -27,6 +27,15 @@ if [ "$py_v3_check" != "" ]; then
27 exit 1 27 exit 1
28fi 28fi
29 29
30# Similarly, we now have code that doesn't parse correctly with older
31# versions of Python, and rather than fixing that and be eternally
32# vigilant for any other new feature use, just check the version here.
33py_v26_check=`python -c 'import sys; print sys.version_info >= (2,6,0)'`
34if [ "$py_v26_check" != "True" ]; then
35 echo "BitBake requires Python 2.6 or later"
36 exit 1
37fi
38
30needtar="1" 39needtar="1"
31TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4` 40TARVERSION=`tar --version | head -n 1 | cut -d ' ' -f 4`
32float_test() { 41float_test() {