aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2011-08-19 20:42:07 +0200
committerOlivier Tilloy <olivier@tilloy.net>2011-08-19 20:42:07 +0200
commit6ed9f96f87c80983d9af6ded88fb540899deab4e (patch)
treed716ade3c1a3d78743ec29cebc119da1aef5f237
parent846611ba355fa09e66cee3e0253d7b364c6e7910 (diff)
downloadpyexiv2-6ed9f96f87c80983d9af6ded88fb540899deab4e.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()