- Timestamp:
- 05/07/12 15:33:49 (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r2321 r2485 103 103 env = Environment( toolpath = ['./scons'], 104 104 tools = ["default", "archiver", "utils", 105 "quietinstall" ],105 "quietinstall", "casaoptions", "casa"], 106 106 ENV = { 'PATH' : os.environ[ 'PATH' ], 107 107 'HOME' : os.environ[ 'HOME' ] }, … … 110 110 Help(opts.GenerateHelpText(env)) 111 111 env.SConsignFile() 112 113 casacoretooldir = os.path.join(env["casacoreroot"],"share",114 "casacore")115 if not os.path.exists(casacoretooldir):116 print "Could not find casacore scons tools"117 Exit(1)118 119 # load casacore specific build flags120 env.Tool('casaoptions', [casacoretooldir])121 opts.Update(env)122 env.Tool('casa', [casacoretooldir])123 112 124 113 if not env.GetOption('clean'): … … 149 138 Exit(1) 150 139 151 conf.env.AddCustomPackage('pyrap')152 if conf.CheckLib(conf.env["pyraplib"], language='c++', autoadd=0):140 # conf.env.AddCustomPackage('pyrap') 141 if False and conf.CheckLib(conf.env["pyraplib"], language='c++', autoadd=0): 153 142 conf.env.Append(CPPFLAGS=['-DHAVE_LIBPYRAP']) 154 conf.env.PrependUnique(LIBS=env['pyraplib'])143 # conf.env.PrependUnique(LIBS=env['pyraplib']) 155 144 else: 156 145 conf.env.AppendUnique(CPPPATH=[conf.env["numpyincdir"]]) … … 188 177 if not conf.CheckLib('stdc++', language='c++'): Exit(1) 189 178 if conf.env["alma"]: 190 conf.env.Append(CPPFLAGS=['-DUSE_ ALMA'])179 conf.env.Append(CPPFLAGS=['-DUSE_CASAPY']) 191 180 if not conf.env.get("moduledir"): 192 181 mdir = get_moduledir(conf.env.get("prefix")) … … 196 185 env = conf.Finish() 197 186 198 env["version"] = "4. 0.x"187 env["version"] = "4.1.x" 199 188 200 189 if env['mode'] == 'release': … … 226 215 env.AddPostAction(so, taction) 227 216 228 # install targets 229 installs = [] 230 installs.append(env.Install("$moduledir/asap", so)) 231 installs.append(env.Install("$moduledir/asap", env.SGlob("python/*.py"))) 232 installs.append(env.Install("$prefix/bin", 233 ["bin/asap", "bin/asap_update_data"])) 234 installs.append(env.Install("$moduledir/asap/data", "share/ipythonrc-asap")) 235 installs.append(env.Install("$moduledir/asap/data", "share/ipy_user_conf.py")) 236 env.Alias('install', installs) 237 238 # install aips++ data repos 239 rootdir = None 240 outdir = os.path.join(env["moduledir"],'asap','data') 241 sources = ['ephemerides','geodetic'] 242 if os.path.exists("/nfs/aips++/data"): 243 rootdir = "/nfs/aips++/data" 244 elif os.path.exists("data"): 245 rootdir = "./data" 246 if rootdir is not None: 247 ofiles, ifiles = env.WalkDirTree(outdir, rootdir, sources) 248 data = env.InstallAs(ofiles, ifiles) 249 env.Alias('install', data) 217 setup_py = None 218 env.Alias('install', setup_py) 250 219 251 220 # make binary distribution … … 260 229 env.QInstall("$stagedir/asap/data", "share/ipythonrc-asap") 261 230 env.QInstall("$stagedir/asap/data", "share/ipy_user_conf.py") 262 if rootdir is not None:263 # This creates a directory Using data table... - disabled264 #env.Command("Using data tables in %s" % rootdir,265 # '', env.MessageAction)266 outdir = os.path.join(env["stagedir"],'asap','data')267 ofiles, ifiles = env.WalkDirTree(outdir, rootdir, sources)268 env.QInstallAs(ofiles, ifiles)269 else:270 env.Command("No data tables available. Use 'asap_update_data' after install",271 '', env.MessageAction)272 # arch = env.Archiver(os.path.join("dist",273 # env["stagedir"]+"_"+env["makedist"]),274 # env["stagedir"])275 # env.AddPostAction(arch, Delete("$stagedir"))276 231 277 232 if env["apps"]: -
trunk/apps/SConscript
r1752 r2485 21 21 myenv.QInstall("#/$stagedir/bin", prog) 22 22 23 myenv.Alias('install', installs)
Note:
See TracChangeset
for help on using the changeset viewer.