~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to SConstruct

  • Committer: Olivier Tilloy
  • Date: 2010-03-18 17:06:31 UTC
  • mfrom: (281.1.4 install_user)
  • Revision ID: olivier@tilloy.net-20100318170631-cs9unkjdzqfhqn39
Add a --user switch to install pyexiv2 in the user site directory.
Original patch proposed by Ilpo Nyyssönen.

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():