/[escript]/release/3.3.1/site_scons/dependencies.py
ViewVC logotype

Diff of /release/3.3.1/site_scons/dependencies.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4317 by jfenwick, Mon Mar 11 01:02:52 2013 UTC revision 4318 by jfenwick, Thu Mar 14 10:16:49 2013 UTC
# Line 31  def checkCompiler(env): Line 31  def checkCompiler(env):
31      if 'CheckCC' in dir(conf): # exists since scons 1.1.0      if 'CheckCC' in dir(conf): # exists since scons 1.1.0
32          if not conf.CheckCC():          if not conf.CheckCC():
33              print("Cannot run C compiler '%s' (check config.log)" % (env['CC']))              print("Cannot run C compiler '%s' (check config.log)" % (env['CC']))
34              Exit(1)              env.Exit(1)
35          if not conf.CheckCXX():          if not conf.CheckCXX():
36              print("Cannot run C++ compiler '%s' (check config.log)" % (env['CXX']))              print("Cannot run C++ compiler '%s' (check config.log)" % (env['CXX']))
37              Exit(1)              env.Exit(1)
38      else:      else:
39          if not conf.CheckFunc('printf', language='c'):          if not conf.CheckFunc('printf', language='c'):
40              print("Cannot run C compiler '%s' (check config.log)" % (env['CC']))              print("Cannot run C compiler '%s' (check config.log)" % (env['CC']))
41              Exit(1)              env.Exit(1)
42          if not conf.CheckFunc('printf', language='c++'):          if not conf.CheckFunc('printf', language='c++'):
43              print("Cannot run C++ compiler '%s' (check config.log)" % (env['CXX']))              print("Cannot run C++ compiler '%s' (check config.log)" % (env['CXX']))
44              Exit(1)              env.Exit(1)
45    
46      conf.env['buildvars']['cc']=conf.env['CC']      conf.env['buildvars']['cc']=conf.env['CC']
47      conf.env['buildvars']['cxx']=conf.env['CXX']      conf.env['buildvars']['cxx']=conf.env['CXX']
# Line 143  def checkPython(env): Line 143  def checkPython(env):
143    
144      if not conf.CheckCHeader('Python.h'):      if not conf.CheckCHeader('Python.h'):
145          print("Cannot find python include files (tried 'Python.h' in directory %s)" % (python_inc_path))          print("Cannot find python include files (tried 'Python.h' in directory %s)" % (python_inc_path))
146          Exit(1)          env.Exit(1)
147      if not conf.CheckFunc('Py_Exit'):      if not conf.CheckFunc('Py_Exit'):
148          print("Cannot find python library method Py_Main (tried %s in directory %s)" % (python_libs, python_lib_path))          print("Cannot find python library method Py_Main (tried %s in directory %s)" % (python_libs, python_lib_path))
149          Exit(1)          env.Exit(1)
150    
151      return conf.Finish()      return conf.Finish()
152    
# Line 185  def checkBoost(env): Line 185  def checkBoost(env):
185  def checkNumpy(env):  def checkNumpy(env):
186      if not detectModule(env, 'numpy'):      if not detectModule(env, 'numpy'):
187          print("Cannot import numpy. If it is installed try setting your PYTHONPATH and probably %s"%env['LD_LIBRARY_PATH_KEY'])          print("Cannot import numpy. If it is installed try setting your PYTHONPATH and probably %s"%env['LD_LIBRARY_PATH_KEY'])
188          Exit(1)          env.Exit(1)
189    
190      ## check for numpy header (optional)      ## check for numpy header (optional)
191      conf = Configure(env.Clone())      conf = Configure(env.Clone())
# Line 291  def checkOptionalLibraries(env): Line 291  def checkOptionalLibraries(env):
291      ######## LAPACK      ######## LAPACK
292      if env['lapack']=='mkl' and not env['mkl']:      if env['lapack']=='mkl' and not env['mkl']:
293          print("mkl_lapack requires MKL!")          print("mkl_lapack requires MKL!")
294          Exit(1)          env.Exit(1)
295    
296      env['uselapack'] = env['lapack']!='none'      env['uselapack'] = env['lapack']!='none'
297      lapack_inc_path=''      lapack_inc_path=''

Legend:
Removed from v.4317  
changed lines
  Added in v.4318

  ViewVC Help
Powered by ViewVC 1.1.26