- Timestamp:
- 08/10/06 15:09:20 (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1127 r1128 59 59 if platform.architecture()[0] == '64bit': 60 60 env.Append(CPPFLAGS='-fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__x86_64__ -DAIPS_64B'.split()) 61 # hack to install into /usr/lib64 if scons isn't installed there 62 if moduledir.startswith("/usr/lib/"): 63 moduledir.replace("lib","lib64") 61 64 if env['mode'] == 'release': 62 65 env.Append(LINKFLAGS=['-Wl,-O1']) … … 69 72 asapmod = InstallTree(env, 70 73 dest_dir = os.path.join(moduledir, "asap"), 71 src_dir = env["dist_dir"],74 src_dir = "dist/asap", 72 75 includes = ['*.py', '*.so'], 73 76 excludes = []) -
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.