Changeset 1127


Ignore:
Timestamp:
08/10/06 14:35:46 (18 years ago)
Author:
mar637
Message:

more fixes to casa detection

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r1125 r1127  
    1717                            "The python module path (site-packages))",
    1818                            moduledir),
     19                ("casadir", "Where casa lives. Default is to autodetect", ""),
    1920                EnumOption("mode", "The type of build.", "debug",
    2021                           ["release","debug"], ignorecase=1))
     
    4950    if not conf.CheckLib('g2c'): Exit(1)
    5051    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)
    5253    env = conf.Finish()
    5354
     
    7172                      includes = ['*.py', '*.so'],
    7273                      excludes = [])
    73 env.Alias('install', asapmod)
     74asapbin = env.Install(os.path.join(distutils.sysconfig.PREFIX, "bin"),"bin/asap")
     75env.Alias('install', [asapmod, asapbin])
    7476
    7577#if env['mode'] == "release":
  • trunk/scons/casa.py

    r1119 r1127  
    11import os
     2import sys
     3import platform
    24from SCons.Script import *
    35
     
    3032        casaarch = darwin
    3133    elif sys.platform == 'linux2' and platform.architecture()[0] == '64bit':
    32         casarch = 'linux_64b'
     34        casaarch = 'linux_64b'
    3335    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):
    3537        paths = [path]
    3638    for p in paths:
    3739        if os.path.isfile(os.path.join(p,casaarch,"lib/libcasa.a")):
    3840            conf.env.Append(CASAARCH = casaarch)
    39             conf.env.Append(CASAROOT = p)
     41            conf.env.Append(CASAROOT = os.path.abspath(p))
    4042            addCasaLibs(conf.env)
    4143            conf.Result('yes')
    4244            return True
    43     conf.Result('n')
     45    conf.Result('no')
    4446    return False
Note: See TracChangeset for help on using the changeset viewer.