aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2011-08-19 20:44:33 +0200
committerOlivier Tilloy <olivier@tilloy.net>2011-08-19 20:44:33 +0200
commit19ab0d31a062fd4221a29f8e382069f690464bdf (patch)
treed716ade3c1a3d78743ec29cebc119da1aef5f237
parent846611ba355fa09e66cee3e0253d7b364c6e7910 (diff)
parent6ed9f96f87c80983d9af6ded88fb540899deab4e (diff)
downloadpyexiv2-19ab0d31a062fd4221a29f8e382069f690464bdf.tar.gz
Check that Python ≥ 2.6 in the build script.
Fail gracefully and with a meaningful error message if this is not the case.
-rw-r--r--SConstruct3
1 files changed, 3 insertions, 0 deletions
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()