Ignore:
Timestamp:
06/09/10 19:03:06 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-2211)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: ASAP 3.0.0 interface changes

Test Programs:

Put in Release Notes: Yes

Module(s): all the CASA sd tools and tasks are affected.

Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.

Note you also need to update casa/code/atnf.


Location:
branches/alma
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/alma

  • branches/alma/bin/install

    r1232 r1757  
    1818    lddopts = ""
    1919    if (sys.platform == "darwin"):
    20         lddcommand = "otool"
     20        lddcommand = "/usr/bin/otool"
    2121        lddopts = "-L"
    2222    if not os.path.isfile(lddcommand):
     
    2727    resolved = []
    2828    unresolved = []
    29     for l in p.readlines():
    30         lsp = l.split()
    31         # test this to avoid fails on linux_gate, which has no library
    32         if len(lsp) >= 3:
    33             if lsp[2] == "not":
    34                 unresolved.append(lsp[0])
     29    if sys.platform == "linux2":
     30        for l in p.readlines():
     31            lsp = l.split()
     32            # test this to avoid fails on linux_gate, which has no library
     33            if len(lsp) >= 3:
     34                if lsp[2] == "not":
     35                    unresolved.append(lsp[0])
     36                else:
     37                    resolved.append(lsp[2])
     38    elif sys.platform == "darwin":
     39        for l in p.readlines():
     40            l = l.strip()
     41            if l.endswith(":"):
     42                continue
     43            l = l.split()[0]
     44            if not os.path.exists(l):
     45                unresolved.append(l)
    3546            else:
    36                 resolved.append(lsp[2])
     47                resolved.append(l)
    3748    return resolved, unresolved
     49
    3850
    3951try:
     
    122134    print "Installing asap  scripts in %s" % bindir
    123135    if moduledir != sysmoduledir:
    124         import sre
     136        import re
    125137        print "Changing asap startup script to use custom PYTHONPATH"
    126138        inf = file("bin/asap")
     
    137149        shutil.copy2("bin/asap", bindir)
    138150    shutil.copy2("bin/asap_update_data", bindir)
     151    shutil.copy2("bin/asap2to3", bindir)
    139152    if not os.path.exists("asap/data/ephemerides"):
    140153        print "Warning - no data directory present"
Note: See TracChangeset for help on using the changeset viewer.