diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2011-08-19 20:44:33 +0200 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2011-08-19 20:44:33 +0200 |
commit | 19ab0d31a062fd4221a29f8e382069f690464bdf (patch) | |
tree | d716ade3c1a3d78743ec29cebc119da1aef5f237 | |
parent | 846611ba355fa09e66cee3e0253d7b364c6e7910 (diff) | |
parent | 6ed9f96f87c80983d9af6ded88fb540899deab4e (diff) | |
download | pyexiv2-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-- | SConstruct | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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() |