Changeset 2485


Ignore:
Timestamp:
05/07/12 15:33:49 (13 years ago)
Author:
Malte Marquarding
Message:

Remove install target and casacore scons dependency

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r2321 r2485  
    103103env = Environment( toolpath = ['./scons'],
    104104                   tools = ["default", "archiver", "utils",
    105                             "quietinstall"],
     105                            "quietinstall", "casaoptions", "casa"],
    106106                   ENV = { 'PATH' : os.environ[ 'PATH' ],
    107107                          'HOME' : os.environ[ 'HOME' ] },
     
    110110Help(opts.GenerateHelpText(env))
    111111env.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 flags
    120 env.Tool('casaoptions', [casacoretooldir])
    121 opts.Update(env)
    122 env.Tool('casa', [casacoretooldir])
    123112
    124113if not env.GetOption('clean'):
     
    149138        Exit(1)
    150139
    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):
    153142        conf.env.Append(CPPFLAGS=['-DHAVE_LIBPYRAP'])
    154         conf.env.PrependUnique(LIBS=env['pyraplib'])
     143#        conf.env.PrependUnique(LIBS=env['pyraplib'])
    155144    else:
    156145        conf.env.AppendUnique(CPPPATH=[conf.env["numpyincdir"]])
     
    188177    if not conf.CheckLib('stdc++', language='c++'): Exit(1)
    189178    if conf.env["alma"]:
    190         conf.env.Append(CPPFLAGS=['-DUSE_ALMA'])
     179        conf.env.Append(CPPFLAGS=['-DUSE_CASAPY'])
    191180    if not conf.env.get("moduledir"):
    192181        mdir = get_moduledir(conf.env.get("prefix"))
     
    196185    env = conf.Finish()
    197186
    198 env["version"] = "4.0.x"
     187env["version"] = "4.1.x"
    199188
    200189if env['mode'] == 'release':
     
    226215env.AddPostAction(so, taction)
    227216
    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)
     217setup_py = None
     218env.Alias('install', setup_py)
    250219
    251220# make binary distribution
     
    260229    env.QInstall("$stagedir/asap/data", "share/ipythonrc-asap")
    261230    env.QInstall("$stagedir/asap/data", "share/ipy_user_conf.py")
    262     if rootdir is not None:
    263         # This creates a directory Using data table... - disabled
    264         #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"))
    276231
    277232if env["apps"]:
  • trunk/apps/SConscript

    r1752 r2485  
    2121        myenv.QInstall("#/$stagedir/bin", prog)
    2222
    23 myenv.Alias('install', installs)
Note: See TracChangeset for help on using the changeset viewer.