Ignore:
Timestamp:
12/21/08 16:04:24 (3 years ago)
Author:
wd
Message:

Update scons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/build/scons.py

    r805 r829  
    33# SCons - a Software Constructor 
    44# 
    5 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 The SCons Foundation 
     5# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation 
    66# 
    77# Permission is hereby granted, free of charge, to any person obtaining 
     
    2525# 
    2626 
    27 __revision__ = "/home/scons/scons/branch.0/baseline/src/script/scons.py 0.97.D001 2007/05/17 11:35:19 knight" 
     27__revision__ = "src/script/scons.py 3842 2008/12/20 22:59:52 scons" 
    2828 
    29 __version__ = "0.97" 
     29__version__ = "1.2.0" 
    3030 
    31 __build__ = "D001" 
     31__build__ = "r3842" 
    3232 
    33 __buildsys__ = "roxbury" 
     33__buildsys__ = "scons-dev" 
    3434 
    35 __date__ = "2007/05/17 11:35:19" 
     35__date__ = "2008/12/20 22:59:52" 
    3636 
    37 __developer__ = "knight" 
     37__developer__ = "scons" 
    3838 
    3939import os 
     
    6767    libs.append(os.environ["SCONS_LIB_DIR"]) 
    6868 
    69 local = 'scons-local-' + __version__ 
     69local_version = 'scons-local-' + __version__ 
     70local = 'scons-local' 
    7071if script_dir: 
     72    local_version = os.path.join(script_dir, local_version) 
    7173    local = os.path.join(script_dir, local) 
     74libs.append(os.path.abspath(local_version)) 
    7275libs.append(os.path.abspath(local)) 
    7376 
     
    138141        pass 
    139142    else: 
    140         while libpath: 
    141             libpath, tail = os.path.split(libpath) 
    142             if tail[:6] == "python": 
    143                 break 
    144         if libpath: 
    145             # Python library is in /usr/libfoo/python*; 
    146             # check /usr/libfoo/scons*. 
    147             prefs.append(libpath) 
     143        # Split /usr/libfoo/python*/os.py to /usr/libfoo/python*. 
     144        libpath, tail = os.path.split(libpath) 
     145        # Split /usr/libfoo/python* to /usr/libfoo 
     146        libpath, tail = os.path.split(libpath) 
     147        # Check /usr/libfoo/scons*. 
     148        prefs.append(libpath) 
    148149 
    149150# Look first for 'scons-__version__' in all of our preference libs, 
     
    158159############################################################################## 
    159160 
    160 import SCons.Script 
    161 SCons.Script.main() 
     161if __name__ == "__main__": 
     162    import SCons.Script 
     163    # this does all the work, and calls sys.exit 
     164    # with the proper exit status when done. 
     165    SCons.Script.main() 
Note: See TracChangeset for help on using the changeset viewer.