* [PATCH] scripts/buildenv-internal/sanity: Update to python 2.7.3 as a minimum
@ 2013-06-07 17:19 Richard Purdie
2013-06-07 17:22 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2013-06-07 17:19 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 3c70a7b..744e30d 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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:
diff --git a/scripts/oe-buildenv-internal b/scripts/oe-buildenv-internal
index a33698c..40d95b7 100755
--- a/scripts/oe-buildenv-internal
+++ b/scripts/oe-buildenv-internal
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-07 17:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 17:19 [PATCH] scripts/buildenv-internal/sanity: Update to python 2.7.3 as a minimum Richard Purdie
2013-06-07 17:22 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox