Changeset 1127 for trunk/scons
- Timestamp:
- 08/10/06 14:35:46 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scons/casa.py
r1119 r1127 1 1 import os 2 import sys 3 import platform 2 4 from SCons.Script import * 3 5 … … 30 32 casaarch = darwin 31 33 elif sys.platform == 'linux2' and platform.architecture()[0] == '64bit': 32 casa rch = 'linux_64b'34 casaarch = 'linux_64b' 33 35 paths = "/nfs/aips++/weekly /aips++ /opt/aips++ ../casa_asap".split() 34 if path is not None :36 if path is not None and len(path): 35 37 paths = [path] 36 38 for p in paths: 37 39 if os.path.isfile(os.path.join(p,casaarch,"lib/libcasa.a")): 38 40 conf.env.Append(CASAARCH = casaarch) 39 conf.env.Append(CASAROOT = p)41 conf.env.Append(CASAROOT = os.path.abspath(p)) 40 42 addCasaLibs(conf.env) 41 43 conf.Result('yes') 42 44 return True 43 conf.Result('n ')45 conf.Result('no') 44 46 return False
Note:
See TracChangeset
for help on using the changeset viewer.