diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-01-20 12:26:28 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-01-20 12:26:28 +0000 |
commit | b8800106d2d2d641b7fd895d08f4b41806ae8ee4 (patch) | |
tree | 2db630b062b4b046cf4baecb0a645560f1ff35f0 /bin | |
parent | b0b0f8043985c95163b952dcda5574fc9850b4b8 (diff) | |
download | bitbake-b8800106d2d2d641b7fd895d08f4b41806ae8ee4.tar.gz |
bitbake: Make trunk python 2.5+ only
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bitbake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bitbake b/bin/bitbake index 397a49f9f..aa0975cc3 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -49,6 +49,11 @@ class BBConfiguration( object ): #============================================================================# def main(): + pythonver = sys.version.split(".") + if int(pythonver[0]) < 2 or int(pythonver[1]) < 5: + print "Sorry, bitbake needs python 2.5 or later." + sys.exit(1) + parser = optparse.OptionParser( version = "BitBake Build Tool Core version %s, %%prog version %s" % ( bb.__version__, __version__ ), usage = """%prog [options] [package ...] |