summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2008-06-25 14:39:02 +0200
committerHans Ulrich Niedermann <hun@n-dimensional.de>2008-07-15 12:28:53 +0200
commitf493d5aa886809786a43f4157beac37aa4305d75 (patch)
treec237255e866204981f2af6fc560f787c197a97fe
parent7c8e2cdacaee25c97266911be609dd3c3299eb95 (diff)
downloadnbb-f493d5aa886809786a43f4157beac37aa4305d75.tar.gz
nbb-f493d5aa886809786a43f4157beac37aa4305d75.tar.xz
nbb-f493d5aa886809786a43f4157beac37aa4305d75.zip
Check for proper python version (2.4)
-rw-r--r--src/nbb.in3
-rw-r--r--src/nbblib/main.py8
2 files changed, 7 insertions, 4 deletions
diff --git a/src/nbb.in b/src/nbb.in
index 406aedf..d4d2c62 100644
--- a/src/nbb.in
+++ b/src/nbb.in
@@ -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: