Changeset 1740
- Timestamp:
- 05/06/10 10:19:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1738 r1740 6 6 7 7 moduledir = distutils.sysconfig.get_python_lib() 8 if platform.architecture()[0] == '64bit': 8 9 if sys.platform.startswith('linux') and platform.architecture()[0] == '64bit': 9 10 # hack to install into /usr/lib64 if scons is in the 32bit /usr/lib/ 10 11 if moduledir.startswith("/usr/lib/"): 11 12 moduledir = moduledir.replace("lib", "lib64") 12 13 13 14 14 EnsureSConsVersion(1,1,0) … … 25 25 moduledir), 26 26 PathVariable("casacoreroot", "The location of casacore", 27 27 "/usr/local"), 28 28 ("boostroot", "The root dir where boost is installed", None), 29 29 ("boostlib", "The name of the boost python library", … … 48 48 ("cfitsiolib", "The cfitsio library name", "cfitsio"), 49 49 ("cfitsioincdir", "The cfitsio include location", None), 50 ("wcslib", "The wcs library name", "wcs"), 50 51 ("wcsroot", 51 52 "The root directory where wcs is installed", None), … … 55 56 "The root directory where rpfits is installed", None), 56 57 ("rpfitslibdir", "The rpfits library location", None), 57 # ("rpfitsincdir", "The rpfits include location", None),58 58 ("pyraproot", "The root directory where libpyrap is installed", 59 59 None), … … 74 74 "none", 75 75 ["none", "pdf", "html"], ignorecase=1), 76 BoolVariable("apps", "Build cpp apps", False),76 BoolVariable("apps", "Build cpp apps", True), 77 77 BoolVariable("alma", "Enable alma specific functionality", 78 78 False), … … 141 141 Exit(1) 142 142 conf.env.AddCustomPackage('wcs') 143 if not conf.CheckLibWithHeader('wcs', 'wcslib/wcs.h', language='c'): 143 if not conf.CheckLibWithHeader(conf.env["wcslib"], 144 'wcslib/wcs.h', language='c'): 144 145 Exit(1) 145 146 conf.env.AddCustomPackage('rpfits') … … 148 149 149 150 # test for blas/lapack 151 lapackname = conf.env.get("lapacklib", "lapack") 150 152 conf.env.AddCustomPackage("lapack") 151 if not conf.CheckLib( conf.env["lapacklib"]): Exit(1)153 if not conf.CheckLib(lapackname): Exit(1) 152 154 blasname = conf.env.get("blaslib", "blas") 153 155 conf.env.AddCustomPackage("blas") 154 if not conf.CheckLib( conf.env["blaslib"]): Exit(1)156 if not conf.CheckLib(blasname): Exit(1) 155 157 conf.env.CheckFortran(conf) 156 158 if not conf.CheckLib('stdc++', language='c++'): Exit(1) … … 159 161 env = conf.Finish() 160 162 161 env["version"] = " 2.x"163 env["version"] = "3.x" 162 164 163 165 if env['mode'] == 'release': … … 190 192 191 193 # install targets 192 somod = env.Install("$moduledir/asap", so ) 193 pymods = env.Install("$moduledir/asap", env.SGlob("python/*.py")) 194 bins = env.Install("$prefix/bin", ["bin/asap", "bin/asap_update_data"]) 195 shares = [env.Install("$moduledir/asap/data", "share/ipythonrc-asap")] 196 shares.append(env.Install("$moduledir/asap/data", "share/ipy_user_conf.py")) 197 env.Alias('install', [somod, pymods, bins]+shares) 194 installs = [] 195 installs.append(env.Install("$moduledir/asap", so)) 196 installs.append(env.Install("$moduledir/asap", env.SGlob("python/*.py"))) 197 installs.append(env.Install("$prefix/bin", 198 ["bin/asap", "bin/asap_update_data"])) 199 installs.append(env.Install("$moduledir/asap/data", "share/ipythonrc-asap")) 200 installs.append(env.Install("$moduledir/asap/data", "share/ipy_user_conf.py")) 201 env.Alias('install', installs) 198 202 199 203 # install aips++ data repos 200 rootdir =None204 rootdir = None 201 205 outdir = os.path.join(env["moduledir"],'asap','data') 202 206 sources = ['ephemerides','geodetic']
Note:
See TracChangeset
for help on using the changeset viewer.