Skip to contentSkip to conversation

scripts/buildenv-internal/sanity: Update to python 2.7.3 as a minimum

PATCH In review Richard Purdie 1 participant 2 messages Jun 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/buildenv-internal/sanity: Update to python 2.7.3 as a minimum

---

meta/classes/sanity.bbclass +3 -4
index 3c70a7b..744e30d 100644
@@ -382,11 +382,10 @@ def check_sanity(sanity_data):
 
     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:
scripts/oe-buildenv-internal +2 -2
index a33698c..40d95b7 100755
@@ -43,9 +43,9 @@ fi
 # 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
 
#1 lore raw
Quoted 1 line · Richard Purdie

I should add that I'm aware that some of these commit messages are missing full explaintions. I will add those before they get merged, I just ran out of time today yet wanted to post them for others to see. Its pretty clear what the patches are doing and why is covered in other emails I've written today.

This series does depend on the bitbake series which I've posted to bitbake-devel.

http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=rpurdie/t8

is the series (ignore the top two commits).

Cheers,

Richard