We're finding bugs in python 2.6 and starting to require unittest
functionality in python 2.7.x. Its time to bump the minimum version
requirement. Anyone without python 2.7.x can use the buildtools-tarball
out to install a standalone python/git/tar setup which will work
with the system.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
messages = ""
- # Check the Python version, we now use Python 2.6 features in
- # various classes
+ # Check the Python version, we now have a minimum of Python 2.7.3
import sys
- if sys.hexversion < 0x020600F0:
- messages = messages + 'The system requires at least Python 2.6 to run. Please update your Python interpreter.\n'
+ if sys.hexversion < 0x020703F0:
+ messages = messages + 'The system requires at least Python 2.7.3 to run. Please update your Python interpreter.\n'
# Check the python install is complete. glib-2.0-natives requries
# xml.parsers.expat
try:
# 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,6,0)'`
+py_v26_check=`python -c 'import sys; print sys.version_info >= (2,7,3)'`
if [ "$py_v26_check" != "True" ]; then
- echo "BitBake requires Python 2.6 or later"
+ echo "BitBake requires Python 2.7.3 or later"
exit 1
fi