Changeset 1195 for trunk/bin/install
- Timestamp:
- 08/29/06 09:47:08 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/install
r1181 r1195 14 14 """ 15 15 16 def get_libs(lddcommand='/usr/bin/ldd', lib='_asap.so'): 16 def get_libs(lib='_asap.so'): 17 lddcommand = "/usr/bin/ldd" 18 lddopts = "" 19 if (sys.platform == "darwin"): 20 lddcommand = "otool" 21 lddopts = "-L" 17 22 if not os.path.isfile(lddcommand): 18 raise IOError("ldd not available")23 raise IOError("ldd/otool is not available") 19 24 if not os.path.exists(lib): 20 25 raise IOError("File %s not found" %lib) 21 p = os.popen(lddcommand+" "+l ib)26 p = os.popen(lddcommand+" "+lddopts+" "+lib) 22 27 resolved = [] 23 28 unresolved = [] … … 115 120 shutil.copy2("bin/asap", bindir) 116 121 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." 118 125 print "Installation completed." 119 126 except OSError, oe:
Note:
See TracChangeset
for help on using the changeset viewer.