Changeset 1128 for trunk/scons
- Timestamp:
- 08/10/06 15:09:20 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scons/casa.py
r1127 r1128 1 __revision__ = "$Version:$" 1 2 import os 2 3 import sys … … 4 5 from SCons.Script import * 5 6 6 def addCasa Libs(env):7 def addCasa(env): 7 8 casalibs = "casav atnf images ms components coordinates \ 8 9 lattices fits measures measures_f \ … … 25 26 conf.env.Append(CASAARCH = casa[1]) 26 27 conf.env.Append(CASAROOT = casa[0]) 27 addCasa Libs(conf.env)28 addCasa(conf.env) 28 29 conf.Result('yes') 29 30 return True 30 31 casaarch = 'linux_gnu' 31 32 if sys.platform == 'darwin': 32 casaarch = darwin33 casaarch = 'darwin' 33 34 elif sys.platform == 'linux2' and platform.architecture()[0] == '64bit': 34 35 casaarch = 'linux_64b' … … 37 38 paths = [path] 38 39 for p in paths: 39 if os.path.isfile(os.path.join(p, casaarch,"lib/libcasa.a")):40 if os.path.isfile(os.path.join(p, casaarch, "lib/libcasa.a")): 40 41 conf.env.Append(CASAARCH = casaarch) 41 42 conf.env.Append(CASAROOT = os.path.abspath(p)) 42 addCasa Libs(conf.env)43 addCasa(conf.env) 43 44 conf.Result('yes') 44 45 return True
Note:
See TracChangeset
for help on using the changeset viewer.