Changeset 829 for trunk/ithildin/build/scons.py
- Timestamp:
- 12/21/08 16:04:24 (3 years ago)
- File:
-
- 1 edited
-
trunk/ithildin/build/scons.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ithildin/build/scons.py
r805 r829 3 3 # SCons - a Software Constructor 4 4 # 5 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007 The SCons Foundation5 # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 The SCons Foundation 6 6 # 7 7 # Permission is hereby granted, free of charge, to any person obtaining … … 25 25 # 26 26 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" 28 28 29 __version__ = " 0.97"29 __version__ = "1.2.0" 30 30 31 __build__ = " D001"31 __build__ = "r3842" 32 32 33 __buildsys__ = " roxbury"33 __buildsys__ = "scons-dev" 34 34 35 __date__ = "200 7/05/17 11:35:19"35 __date__ = "2008/12/20 22:59:52" 36 36 37 __developer__ = " knight"37 __developer__ = "scons" 38 38 39 39 import os … … 67 67 libs.append(os.environ["SCONS_LIB_DIR"]) 68 68 69 local = 'scons-local-' + __version__ 69 local_version = 'scons-local-' + __version__ 70 local = 'scons-local' 70 71 if script_dir: 72 local_version = os.path.join(script_dir, local_version) 71 73 local = os.path.join(script_dir, local) 74 libs.append(os.path.abspath(local_version)) 72 75 libs.append(os.path.abspath(local)) 73 76 … … 138 141 pass 139 142 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) 148 149 149 150 # Look first for 'scons-__version__' in all of our preference libs, … … 158 159 ############################################################################## 159 160 160 import SCons.Script 161 SCons.Script.main() 161 if __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.
