diff options
-rwxr-xr-x | bitbake/bin/bitbake | 6 | ||||
-rw-r--r-- | bitbake/lib/bb/__init__.py | 4 |
2 files changed, 5 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 | ||
25 | import sys | ||
26 | if 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 | |||
30 | import os | 25 | import os |
26 | import sys | ||
31 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), | 27 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), |
32 | 'lib')) | 28 | 'lib')) |
33 | 29 | ||
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index bf2f35a730..e4a970c640 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -23,6 +23,10 @@ | |||
23 | 23 | ||
24 | __version__ = "1.11.0" | 24 | __version__ = "1.11.0" |
25 | 25 | ||
26 | import sys | ||
27 | if sys.version_info < (2, 6, 0): | ||
28 | raise RuntimeError("Sorry, python 2.6.0 or later is required for this version of bitbake") | ||
29 | |||
26 | import os | 30 | import os |
27 | import bb.msg | 31 | import bb.msg |
28 | 32 | ||