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

Diff of /trunk/doc/SConscript

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

revision 2667 by jfenwick, Thu Sep 17 01:49:11 2009 UTC revision 2674 by jfenwick, Mon Sep 21 00:37:18 2009 UTC
# Line 47  example_files_no_mpi = [ Line 47  example_files_no_mpi = [
47  haveGMSH=(os.system("gmsh -version")/256==0)    #Do we have gmsh installed?  haveGMSH=(os.system("gmsh -version")/256==0)    #Do we have gmsh installed?
48  haveMPL=False                   #Do we have matplotlib?  haveMPL=False                   #Do we have matplotlib?
49  haveGD=False                    #Does the matplotlib have griddata?  haveGD=False                    #Does the matplotlib have griddata?
50    
51    mplmagicversion='0.98.5'
52    
53  try:  try:
54     import matplotlib     import matplotlib
55     haveMPL=True     haveMPL=True
56       mplversion=matplotlib.__version__
57     from matplotlib.mlab import griddata     from matplotlib.mlab import griddata
58     haveGD=True     haveGD=True
59  except ImportError:  except ImportError:
# Line 58  except ImportError: Line 62  except ImportError:
62  if not haveMPL:  if not haveMPL:
63     print "matplotlib not found skipping some tests"     print "matplotlib not found skipping some tests"
64  else:  else:
65     if not haveGD:     if mplversion<mplmagicversion:
66      print "matplotlib found but griddata not provided"      print "matplotlib found but version too early. Some tests skipped."
67    
68  if not haveGMSH:  if not haveGMSH:
69     print "gmsh not found"     print "gmsh not found"
# Line 75  example_files_no_mpi.append('cookbook/wa Line 79  example_files_no_mpi.append('cookbook/wa
79  if haveMPL:  if haveMPL:
80     example_files_no_mpi.append('cookbook/onedheatdiff001.py')     example_files_no_mpi.append('cookbook/onedheatdiff001.py')
81     example_files_no_mpi.append('cookbook/onedheatdiff002.py')     example_files_no_mpi.append('cookbook/onedheatdiff002.py')
82     if haveGD:     if mplversion>=mplmagicversion:
83      example_files_no_mpi.append('cookbook/twodheatdiff001.py')      example_files_no_mpi.append('cookbook/twodheatdiff001.py')
84      example_files_no_mpi.append('usersguide/poisson_matplotlib.py')      example_files_no_mpi.append('usersguide/poisson_matplotlib.py')
85      example_files_allow_mpi.append('usersguide/wave.py')      example_files_allow_mpi.append('usersguide/wave.py')

Legend:
Removed from v.2667  
changed lines
  Added in v.2674

  ViewVC Help
Powered by ViewVC 1.1.26