diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-03-18 18:02:10 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-03-18 18:02:10 +0100 |
commit | ab214d20c38736bce62fb09bb9c666ecf2f0c9b7 (patch) | |
tree | 1e51c88c4b1e6b1f9d99a08a2dbfed663e2a354e /SConstruct | |
parent | 474e4afe97d6510a94c7bd0ed9ae4b6dda4efb60 (diff) | |
download | pyexiv2-ab214d20c38736bce62fb09bb9c666ecf2f0c9b7.tar.gz |
Do not add the --user switch for Python < 2.6.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,7 +1,13 @@ # -*- coding: utf-8 -*- def build_lib(): - AddOption('--user', action='store_true') + try: + from site import USER_SITE + except ImportError: + # Installing in the user site directory requires Python ≥ 2.6. + pass + else: + AddOption('--user', action='store_true') SConscript('src/SConscript', variant_dir='build', duplicate=0) def build_doc(): |