diff --git a/bin/cdist b/bin/cdist index 4d9cd8a2..06e82cc9 100755 --- a/bin/cdist +++ b/bin/cdist @@ -206,6 +206,12 @@ if __name__ == "__main__": import re import sys + cdistpythonversion = '3.2' + if sys.version < cdistpythonversion: + print('Cdist requires Python >= ' + cdistpythonversion + + ' on the source host.') + sys.exit(1) + # Ensure our /lib/ is included into PYTHON_PATH sys.path.insert(0, os.path.abspath( os.path.join(os.path.dirname(os.path.realpath(__file__)), '../lib'))) diff --git a/doc/changelog b/doc/changelog index 211cdcec..3e1bed97 100644 --- a/doc/changelog +++ b/doc/changelog @@ -3,6 +3,7 @@ * Feature: __addifnosuchline supports matching on regular expressions (Daniel Maher) * Documentation: (Re)write of the tutorial + * Cleanup: Explicitly require Python >= 3.2 (do not fail implicitly) 2.0.4: 2011-11-18 * Bugfix core: Remove traceback when sending SIGINT (aka Ctrl-C)