From 81660b5d644f873d902142a1f18fde37983537c1 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 6 Jan 2012 13:17:35 +0100 Subject: [PATCH] explicitly require python 3.2 on source host Signed-off-by: Nico Schottelius --- bin/cdist | 6 ++++++ doc/changelog | 1 + 2 files changed, 7 insertions(+) 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)