summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-15 08:45:15 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:34 +0100
commit214d1f7433fd8571c3e0920624ce07f31c7f08c9 (patch)
tree60bcbf02751331e45b6d8782a4318a184262f70e /bitbake/bin
parent231d3a534cdf75b3db588329fbd5d2a0fbbfba5e (diff)
downloadpoky-214d1f7433fd8571c3e0920624ce07f31c7f08c9.tar.gz
Move the python version check into the python package
This ensures the check is run for anyone using the package, including setup.py, though it's sad that it's necessary, since all it really wants is __version__. Ideally, we'd avoid the version check entirely in favor of checking for functionality, but that's rather difficult with language constructs like context managers, so this'll do for now. (Bitbake rev: f936f1c0edf70860ea0f39ec1a500ba43b56f289) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake6
1 files changed, 1 insertions, 5 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index a8d6fd9d08..82af9a7190 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -22,12 +22,8 @@
22# with this program; if not, write to the Free Software Foundation, Inc., 22# with this program; if not, write to the Free Software Foundation, Inc.,
23# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 23# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 24
25import sys
26if sys.version_info < (2, 6, 0):
27 print "Sorry, python 2.6.0 or later is required for this version of bitbake"
28 sys.exit(1)
29
30import os 25import os
26import sys
31sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 27sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])),
32 'lib')) 28 'lib'))
33 29