~osomon/pyexiv2/scons-check-python-version

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Olivier Tilloy
  • Date: 2010-03-18 22:55:22 UTC
  • mfrom: (286 pyexiv2-0.2)
  • mto: This revision was merged to the branch mainline in revision 288.
  • Revision ID: olivier@tilloy.net-20100318225522-m4armcwfo2svbrz9
Merge the master branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- coding: utf-8 -*-
2
2
 
3
3
def build_lib():
 
4
    try:
 
5
        from site import USER_SITE
 
6
    except ImportError:
 
7
        # Installing in the user site directory requires Python ≥ 2.6.
 
8
        pass
 
9
    else:
 
10
        AddOption('--user', action='store_true',
 
11
                  help='Install in the user site directory.')
4
12
    SConscript('src/SConscript', variant_dir='build', duplicate=0)
5
13
 
6
14
def build_doc():