aboutsummaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2010-03-18 18:02:10 +0100
committerOlivier Tilloy <olivier@tilloy.net>2010-03-18 18:02:10 +0100
commitab214d20c38736bce62fb09bb9c666ecf2f0c9b7 (patch)
tree1e51c88c4b1e6b1f9d99a08a2dbfed663e2a354e /SConstruct
parent474e4afe97d6510a94c7bd0ed9ae4b6dda4efb60 (diff)
downloadpyexiv2-ab214d20c38736bce62fb09bb9c666ecf2f0c9b7.tar.gz
Do not add the --user switch for Python < 2.6.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 7 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 1b0b269..3a3d308 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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():