- Timestamp:
- 08/24/06 11:45:27 (18 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1177 r1181 6 6 #from installtree import InstallTree 7 7 8 version = "2.1 b"8 version = "2.1.0b" 9 9 moduledir = distutils.sysconfig.get_python_lib() 10 10 if platform.architecture()[0] == '64bit': … … 98 98 stagepys = env.SConscript("python/SConscript") 99 99 stage0 = env.Install("stage", "bin/install") 100 stage1 = env.Install("stage/bin", "bin/asap") 101 env.Alias('stage', [stagebuild,stagedoc,stagepys, stage0, stage1]) 100 stage1 = env.Install("stage/bin", ["bin/asap", "bin/asap_update_data"]) 101 stage2 = env.Install("stage/data", "share/ipythonrc-asap") 102 env.Alias('stage', [stagebuild,stagedoc,stagepys, stage0, stage1, stage2]) 102 103 # install locally 103 104 asapmod = env.InstallTree(dest_dir = os.path.join(env["moduledir"], "asap"), … … 110 111 if len(env["makedist"]): 111 112 md =env.CreateDist("dist/asap-%s-%s" % (version, env["makedist"]), 112 ["install", "README", "CHANGELOG", "asap"], 113 ["install", "README", "CHANGELOG", "asap", "data", 114 "bin"], 113 115 "stage") -
trunk/bin/install
r1173 r1181 13 13 [-h] this message 14 14 """ 15 16 def get_libs(lddcommand='/usr/bin/ldd', lib='_asap.so'): 17 if not os.path.isfile(lddcommand): 18 raise IOError("ldd not available") 19 if not os.path.exists(lib): 20 raise IOError("File %s not found" %lib) 21 p = os.popen(lddcommand+" "+lib) 22 resolved = [] 23 unresolved = [] 24 for l in p.readlines(): 25 lsp = l.split() 26 if lsp[2] == "not": 27 unresolved.append(lsp[0]) 28 else: 29 resolved.append(lsp[2]) 30 return resolved, unresolved 15 31 16 32 try: … … 47 63 moduledir = v 48 64 49 print 'Looking for dependent modules...' 65 print "Looking fo all required libraries..." 66 try: 67 libs, missing = get_libs(lib="asap/_asap.so") 68 if len(missing): 69 print " The following libraries are missing:" 70 print missing 71 sys.exit(1) 72 else: 73 print " All required libraries are present." 74 except IOError,msg: 75 print msg+" Skipping test." 76 77 print 'Looking for dependent python modules...' 50 78 try: 51 79 import matplotlib … … 75 103 sys.exit(1) 76 104 77 print " All required modules were found."105 print " All required modules were found." 78 106 moddir = os.path.join(moduledir, "asap") 79 107 bindir = os.path.join(execprefix, "bin") … … 84 112 print "Installing asap module in %s" % moddir 85 113 shutil.copytree("asap", moddir) 86 print "Installing asap startup scriptin %s" % bindir114 print "Installing asap scripts in %s" % bindir 87 115 shutil.copy2("bin/asap", bindir) 116 shutil.copy2("bin/asap_update_data", bindir) 88 117 shutil.copytree("data", os.path.join(moddir,"data")) 89 118 print "Installation completed." -
trunk/doc/README
r770 r1181 1 This is a linuxbinary distribution of asap.1 This is a binary distribution of asap. 2 2 3 3 To be able to run the following additional packages need to be installed. 4 4 5 * gcc-3.3, g++-3.3 6 * python2.3 7 * boost_python (1.32) 5 * gcc/g++ 6 * python 7 * boost_python 8 * cfitsio 8 9 * lapack 9 10 * blas 10 11 * g2c 11 * matplotlib (>0.73) 12 * ipython 12 * matplotlib 13 * numpy or numarray 14 * ipython 13 15 14 16 INSTALL … … 16 18 17 19 To install simply run (as root or 'sudo') 18 ./bin/install.sh 19 which will install asap into /usr/local 20 21 ./install 22 23 which will install asap into the default location. 24 To do a customised install run 25 26 ./install -h 27 28 for help. 20 29 21 30 … … 24 33 25 34 simply type 26 asap 27 at the prompt 35 36 asap 37 38 at the prompt (if you use tcsh you might need to run 'rehash' first)
Note:
See TracChangeset
for help on using the changeset viewer.