From 6ed9f96f87c80983d9af6ded88fb540899deab4e Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Fri, 19 Aug 2011 20:42:07 +0200 Subject: Check that Python ≥ 2.6 in the build script. Fail gracefully and with a meaningful error message if this is not the case. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SConstruct | 3 +++ 1 file changed, 3 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index c81de83..0433d7f 100644 --- a/SConstruct +++ b/SConstruct @@ -29,6 +29,9 @@ def run_tests(): _fiddle_with_pythonpath() SConscript('test/SConscript') +if sys.version_info < (2, 6): + sys.exit('ERROR: pyexiv2 requires Python ≥ 2.6. Exiting.') + if not BUILD_TARGETS: # Default target: lib build_lib() -- cgit