~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to SConstruct

Check that Python ≥ 2.6 in the build script.
Fail gracefully and with a meaningful error message if this is not the case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    _fiddle_with_pythonpath()
30
30
    SConscript('test/SConscript')
31
31
 
 
32
if sys.version_info < (2, 6):
 
33
    sys.exit('ERROR: pyexiv2 requires Python ≥ 2.6. Exiting.')
 
34
 
32
35
if not BUILD_TARGETS:
33
36
    # Default target: lib
34
37
    build_lib()