diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-06-25 14:39:02 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-15 12:28:53 +0200 |
commit | f493d5aa886809786a43f4157beac37aa4305d75 (patch) | |
tree | c237255e866204981f2af6fc560f787c197a97fe | |
parent | 7c8e2cdacaee25c97266911be609dd3c3299eb95 (diff) | |
download | nbb-f493d5aa886809786a43f4157beac37aa4305d75.tar.gz nbb-f493d5aa886809786a43f4157beac37aa4305d75.tar.xz nbb-f493d5aa886809786a43f4157beac37aa4305d75.zip |
Check for proper python version (2.4)
-rw-r--r-- | src/nbb.in | 3 | ||||
-rw-r--r-- | src/nbblib/main.py | 8 |
2 files changed, 7 insertions, 4 deletions
@@ -10,6 +10,9 @@ import sys import os PACKAGE_VERSION = "@PACKAGE_VERSION@" +if sys.version_info < (2,4): + print "Fatal: This program requires Python 2.4 or later." + sys.exit(3) if __name__ == '__main__': pythondir = "@pythondir@" diff --git a/src/nbblib/main.py b/src/nbblib/main.py index ef7ab54..ad4821b 100644 --- a/src/nbblib/main.py +++ b/src/nbblib/main.py @@ -24,6 +24,10 @@ DONE: * Merge stuff from Eclipse to src/own/nbb and vice versa. * Write test cases for init, configure, build, install. * Write test cases for all nbb commands. + * Determine required feature sets (properties, new-style classes, etc.) + and then check that the Python environment is actually compatible. + @classmethod -> Python 2.4 + new style classes -> Python 2.2 TODO: (to get git-amb equivalent functionality) * Fine-tune init, configure, build, install commands with knowledge @@ -31,10 +35,6 @@ TODO: (to get git-amb equivalent functionality) * Implement *-sh and *-run commands. TODO: (Large list) - * Determine required feature sets (properties, new-style classes, etc.) - and then check that the Python environment is actually compatible. - @classmethod -> Python 2.4 - new style classes -> Python 2.2 * BS support: cmake, scons, ... * VCS support: SVN, darcs, hg, ... * Out-of-source builds for systems which require in-source-tree builds: |