/[escript]/trunk/doc/SConscript
ViewVC logotype

Diff of /trunk/doc/SConscript

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

revision 3447 by ahallam, Fri Jan 21 04:33:42 2011 UTC revision 3463 by caltinay, Mon Feb 7 02:09:57 2011 UTC
# Line 14  Line 14 
14  import os  import os
15  Import('*')  Import('*')
16    
 haveGMSH=False  # do we have gmsh?  
17  haveMPL=False   # do we have matplotlib?  haveMPL=False   # do we have matplotlib?
18  haveGD=False    # does matplotlib have griddata?  haveGD=False    # does matplotlib have griddata?
19    
 # check for gmsh  
 try:  
     import subprocess  
     p=subprocess.Popen(['gmsh', '-version'], stderr=subprocess.PIPE)  
     p.poll()  
     haveGMSH=True  
 except OSError:  
     print("gmsh not found")  
   
20  mplmagicversion='0.98.5'  mplmagicversion='0.98.5'
21    
22  # check for matplotlib  # check for matplotlib
23  try:  try:
24     import matplotlib      import matplotlib
25     haveMPL=True      haveMPL=True
26     mplversion=matplotlib.__version__      mplversion=matplotlib.__version__
27     from matplotlib.mlab import griddata      from matplotlib.mlab import griddata
28     haveGD=True      haveGD=True
29  except ImportError:  except ImportError:
30     pass      pass
31    
32  if not haveMPL:  if not haveMPL:
33      print("matplotlib not found, skipping some tests")      print("matplotlib not found, skipping some tests")
# Line 54  def sortOutExample(name, needsGMSH=False Line 44  def sortOutExample(name, needsGMSH=False
44      if needsGD: needsMPL=True      if needsGD: needsMPL=True
45      if needsGMSH: allowsMPI=False      if needsGMSH: allowsMPI=False
46    
47      if (not needsGMSH or haveGMSH) and (not needsMPL or haveMPL) and (not needsMagicMPL or mplversion>=mplmagicversion) and (not needsGD or haveGD):      if (not needsGMSH or env['gmsh']) and (not needsMPL or haveMPL) and (not needsMagicMPL or mplversion>=mplmagicversion) and (not needsGD or haveGD):
48          if allowsMPI:          if allowsMPI:
49              example_files_allow_mpi.append(name)              example_files_allow_mpi.append(name)
50          else:          else:

Legend:
Removed from v.3447  
changed lines
  Added in v.3463

  ViewVC Help
Powered by ViewVC 1.1.26