Changeset 1195 for trunk/bin/install


Ignore:
Timestamp:
08/29/06 09:47:08 (18 years ago)
Author:
mar637
Message:

added module test action. fixed makedist target including install script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/install

    r1181 r1195  
    1414    """
    1515
    16 def get_libs(lddcommand='/usr/bin/ldd', lib='_asap.so'):
     16def get_libs(lib='_asap.so'):
     17    lddcommand = "/usr/bin/ldd"
     18    lddopts = ""
     19    if (sys.platform == "darwin"):
     20        lddcommand = "otool"
     21        lddopts = "-L"
    1722    if not os.path.isfile(lddcommand):
    18         raise IOError("ldd not available")
     23        raise IOError("ldd/otool is not available")
    1924    if not os.path.exists(lib):
    2025        raise IOError("File %s not found" %lib)
    21     p = os.popen(lddcommand+" "+lib)
     26    p = os.popen(lddcommand+" "+lddopts+" "+lib)
    2227    resolved = []
    2328    unresolved = []
     
    115120    shutil.copy2("bin/asap", bindir)
    116121    shutil.copy2("bin/asap_update_data", bindir)
    117     shutil.copytree("data", os.path.join(moddir,"data"))
     122    if not os.path.exists("asap/data/ephemerides"):
     123        print "Warning - no data directory present"
     124        print "Please run asap_update_data after the installation is completed."
    118125    print "Installation completed."
    119126except OSError, oe:
Note: See TracChangeset for help on using the changeset viewer.