Changeset 1127
- Timestamp:
- 08/10/06 14:35:46 (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1125 r1127 17 17 "The python module path (site-packages))", 18 18 moduledir), 19 ("casadir", "Where casa lives. Default is to autodetect", ""), 19 20 EnumOption("mode", "The type of build.", "debug", 20 21 ["release","debug"], ignorecase=1)) … … 49 50 if not conf.CheckLib('g2c'): Exit(1) 50 51 if not conf.CheckLib('stdc++',language='c++'): Exit(1) 51 if not conf.CheckCasa( ): Exit(1)52 if not conf.CheckCasa(env["casadir"]): Exit(1) 52 53 env = conf.Finish() 53 54 … … 71 72 includes = ['*.py', '*.so'], 72 73 excludes = []) 73 env.Alias('install', asapmod) 74 asapbin = env.Install(os.path.join(distutils.sysconfig.PREFIX, "bin"),"bin/asap") 75 env.Alias('install', [asapmod, asapbin]) 74 76 75 77 #if env['mode'] == "release": -
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.