Changes in trunk/SConstruct [1941:1819]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
- Property svn:mergeinfo changed
/branches/asap4casa3.1.0/SConstruct removed
r1941 r1819 4 4 import platform 5 5 import SCons 6 7 # try to autodetect numpy8 def get_numpy_incdir():9 try:10 # try to find an egg11 from pkg_resources import require12 tmp = require("numpy")13 import numpy14 return numpy.__path__[0]+"/core/include"15 except Exception:16 # now try standard package17 try:18 import numpy19 return numpy.__path__[0]+"/core/include"20 except ImportError:21 pass22 return ""23 6 24 7 moduledir = distutils.sysconfig.get_python_lib() … … 75 58 ("pyraproot", "The root directory where libpyrap is installed", 76 59 None), 77 ("numpyincdir", "numpy header file directory",78 get_numpy_incdir()),79 60 ("pyraplib", "The name of the pyrap library", "pyrap"), 80 61 ("pyraplibdir", "The directory where libpyrap is installed", … … 147 128 148 129 conf.env.AddCustomPackage('pyrap') 149 if conf.CheckLib(conf.env["pyraplib"], language='c++', autoadd=0): 150 conf.env.Append(CPPFLAGS=['-DHAVE_LIBPYRAP']) 130 if conf.env.get("enable_pyrap") and conf.CheckLib(conf.env["pyraplib"], 131 language='c++', 132 autoadd=0): 133 conf.env.Append(CPPFLAGS=['-DHAVE_PYRAP']) 151 134 conf.env.PrependUnique(LIBS=env['pyraplib']) 152 else: 153 conf.env.AppendUnique(CPPPATH=[conf.env["numpyincdir"]]) 154 # numpy 1.0 uses config.h; numpy >= 1.1 uses numpyconfig.h 155 if conf.CheckHeader("numpy/config.h") or \ 156 conf.CheckHeader("numpy/numpyconfig.h"): 157 conf.env.Append(CPPDEFINES=["-DAIPS_USENUMPY"]) 158 else: 159 conf.env.Exit(1) 160 conf.env.Append(CPPFLAGS=['-DHAVE_LIBPYRAP']) 161 # compile in pyrap here... 162 conf.env["pyrapint"] = "#/external/libpyrap/pyrap-0.3.2" 135 163 136 # test for cfitsio 164 137 if not conf.CheckLib("m"): Exit(1) - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.