/[escript]/branches/DataC_2092/SConstruct
ViewVC logotype

Diff of /branches/DataC_2092/SConstruct

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

revision 707 by gross, Wed Apr 12 23:58:02 2006 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1  #          Copyright 2006 by ACcESS MNRF                    #         Copyright 2006 by ACcESS MNRF
 #                                                            
 #              http://www.access.edu.au                      
 #       Primary Business: Queensland, Australia              
 #  Licensed under the Open Software License version 3.0      
 #     http://www.opensource.org/licenses/osl-3.0.php        
 #                                                            
 #  
2  #  #
3    #              http://www.access.edu.au
4    #       Primary Business: Queensland, Australia
5    #  Licensed under the Open Software License version 3.0
6    #     http://www.opensource.org/licenses/osl-3.0.php
7    
8  # top-level Scons configuration file for all esys13 modules  # top-level Scons configuration file for all esys13 modules
9  # Begin initialisation Section  # Begin initialisation Section
10  # all of this section just intialises default environments and helper  # all of this section just intialises default environments and helper
11  # scripts. You shouldn't need to modify this section.  # scripts. You shouldn't need to modify this section.
12  EnsureSConsVersion(0,96,91)  EnsureSConsVersion(0,96,91)
13  EnsurePythonVersion(2,3)  EnsurePythonVersion(2,3)
14    
15  # import tools:  #===============================================================
16    #   import tools:
17  import glob  import glob
18  import sys, os  import sys, os, re
19  # Add our extensions  # Add our extensions
20  if sys.path.count('scons')==0: sys.path.append('scons')  if sys.path.count('scons')==0: sys.path.append('scons')
21  import scons_extensions  import scons_extensions
22    
23    #===============================================================
24    
25    tools_prefix="/usr"
26    
27    #==============================================================================================    
28    #    
29    #    get the installation prefix
30    #
31    prefix = ARGUMENTS.get('prefix', '/usr')
32    
33    # We may also need to know where python's site-packages subdirectory lives
34    python_version = 'python%s.%s'%(sys.version_info[0],sys.version_info[1])
35    
36    # Install as a standard python package in /usr/lib64 if available, else in /usr/lib
37    if os.path.isdir(  prefix+"/lib64/"+python_version+"/site-packages"):
38       sys_dir_packages =  prefix+"/lib64/"+python_version+"/site-packages/esys"
39       sys_dir_libraries = prefix+"/lib64"
40    else:
41       sys_dir_packages =  prefix+"/lib/"+python_version+"/site-packages/esys"
42       sys_dir_libraries = prefix+"/lib"
43    
44    sys_dir_examples = prefix+"/share/doc/esys"
45    
46    source_root = Dir('#.').abspath
47    
48    dir_packages = os.path.join(source_root,"esys")
49    dir_examples = os.path.join(source_root,"examples")
50    dir_libraries = os.path.join(source_root,"lib")
51    
52    print "Source root is : ",source_root
53    print " Default packages local installation:    ", dir_packages
54    print " Default library local installation  ", dir_libraries
55    print " Default example local  installation:    ", dir_examples
56    print "Install prefix is: ", prefix
57    print " Default packages system installation:   ", sys_dir_packages
58    print " Default library system installation     ", sys_dir_libraries
59    print " Default example system installation:    ", sys_dir_examples
60    
61    #==============================================================================================    
62    
63  # Default options and options help text  # Default options and options help text
64  # These are defaults and can be overridden using command line arguments or an options file.  # These are defaults and can be overridden using command line arguments or an options file.
65  # if the options_file or ARGUMENTS do not exist then the ones listed as default here are used  # if the options_file or ARGUMENTS do not exist then the ones listed as default here are used
66  # DO NOT CHANGE THEM HERE  # DO NOT CHANGE THEM HERE
67  if ARGUMENTS.get('options_file',0):  # Where to install?
68     options_file = ARGUMENTS.get('options_file',0)  #==============================================================================================    
69  else:  #    
70    #    get the options file if present:
71    #
72    options_file = ARGUMENTS.get('options_file','')
73    
74    if not os.path.isfile(options_file) :
75        options_file = False
76    
77    if not options_file :
78     import socket     import socket
79     from string import ascii_letters,digits     hostname = re.sub("[^0-9a-zA-Z]", "_", socket.gethostname().split('.')[0])
80     hostname=""     tmp = os.path.join("scons",hostname+"_options.py")
81     for s in socket.gethostname().split('.')[0]:  
82        if s in ascii_letters+digits:     if os.path.isfile(tmp) :
83           hostname+=s        options_file = tmp
84        else:  
85           hostname+="_"  IS_WINDOWS_PLATFORM = (os.name== "nt")
    options_file = "scons/"+hostname+"_options.py"  
86    
87    # If you're not going to tell me then......
88    # FIXME: add one for the altix too.
89    if not options_file :
90       if IS_WINDOWS_PLATFORM :
91          options_file = "scons/windows_mscv71_options.py"
92       else:
93          options_file = "scons/linux_gcc_eg_options.py"
94    
95    # and load it
96  opts = Options(options_file, ARGUMENTS)  opts = Options(options_file, ARGUMENTS)
97    #================================================================
98    #
99    #   check if UMFPACK is installed on the system:
100    #
101    uf_root=None
102    for i in [ 'UMFPACK', 'umfpack', 'ufsparse', 'UFSPARSE']:
103       if os.path.isdir(os.path.join(tools_prefix,'include',i)):
104           uf_root=i
105           print i," is used form ",tools_prefix
106           break
107    if not uf_root==None:
108       umf_path_default=os.path.join(tools_prefix,'include',uf_root)
109       umf_lib_path_default=os.path.join(tools_prefix,'lib')
110       umf_libs_default=['umfpack']
111       amd_path_default=os.path.join(tools_prefix,'include',uf_root)
112       amd_lib_path_default=os.path.join(tools_prefix,'lib')
113       amd_libs_default=['amd']
114       ufc_path_default=os.path.join(tools_prefix,'include',uf_root)
115    else:
116       umf_path_default=None
117       umf_lib_path_default=None
118       umf_libs_default=None
119       amd_path_default=None
120       amd_lib_path_default=None
121       amd_libs_default=None
122       ufc_path_default=None
123    #
124    #==========================================================================
125    #
126    #    python installation:
127    #
128    python_path_default=os.path.join(tools_prefix,'include','python%s.%s'%(sys.version_info[0],sys.version_info[1]))
129    python_lib_path_default=os.path.join(tools_prefix,'lib')
130    python_lib_default="python%s.%s"%(sys.version_info[0],sys.version_info[1])
131    
132    #==========================================================================
133    #
134    #    boost installation:
135    #
136    boost_path_default=os.path.join(tools_prefix,'include')
137    boost_lib_path_default=os.path.join(tools_prefix,'lib')
138    boost_lib_default=['boost_python']
139    
140    #==========================================================================
141    #
142    #    check if netCDF is installed on the system:
143    #
144    netCDF_path_default=os.path.join(tools_prefix,'include','netcdf-3')
145    netCDF_lib_path_default=os.path.join(tools_prefix,'lib')
146    
147    if os.path.isdir(netCDF_path_default) and os.path.isdir(netCDF_lib_path_default):
148         useNetCDF_default='yes'
149         netCDF_libs_default=[ 'netcdf_c++', 'netcdf' ]
150    else:
151         useNetCDF_default='no'
152         netCDF_path_default=None
153         netCDF_lib_path_default=None
154         netCDF_libs_default=None
155    
156    #==========================================================================
157    #
158    #  MPI:
159    #
160    if IS_WINDOWS_PLATFORM:
161       useMPI_default='no'
162       mpi_path_default=None
163       mpi_lib_path_default=None
164       mpi_libs_default=[]
165       mpi_run_default=None
166    else:
167       useMPI_default='no'
168       mpi_root='/usr/local'
169       mpi_path_default=os.path.join(mpi_root,'include')
170       mpi_lib_path_default=os.path.join(mpi_root,'lib')
171       mpi_libs_default=[ 'mpich' , 'pthread', 'rt' ]
172       mpi_run_default='mpiexec -np 1'
173    #
174    #==========================================================================
175    #
176    #    compile:
177    #
178    cc_flags_default='-O3 -std=c99 -ffast-math -fpic -Wno-unknown-pragmas -ansi'
179    cc_flags_debug_default='-g -O0 -ffast-math -std=c99 -fpic -Wno-unknown-pragmas -ansi'
180    cxx_flags_default='--no-warn -ansi'
181    cxx_flags_debug_default='--no-warn -ansi -DDOASSERT'
182    
183    #==============================================================================================    
184    # Default options and options help text
185    # These are defaults and can be overridden using command line arguments or an options file.
186    # if the options_file or ARGUMENTS do not exist then the ones listed as default here are used
187    # DO NOT CHANGE THEM HERE
188  opts.AddOptions(  opts.AddOptions(
189  # Where to install esys stuff  # Where to install esys stuff
190    ('incinstall', 'where the esys headers will be installed', Dir('#.').abspath+'/include'),    ('incinstall', 'where the esys headers will be installed',             Dir('#.').abspath+'/include'),
191    ('libinstall', 'where the esys libraries will be installed', Dir('#.').abspath+'/lib'),    ('libinstall', 'where the esys libraries will be installed',           dir_libraries),
192    ('pyinstall', 'where the esys python modules will be installed', Dir('#.').abspath),    ('pyinstall', 'where the esys python modules will be installed',       dir_packages),
193    ('src_zipfile', 'the source zip file will be installed.', Dir('#.').abspath+"/release/escript_src.zip"),    ('exinstall', 'where the esys examples will be installed',             dir_examples),
194    ('test_zipfile', 'the test zip file will be installed.', Dir('#.').abspath+"/release/escript_tests.zip"),    ('sys_libinstall', 'where the system esys libraries will be installed',       sys_dir_libraries),
195    ('src_tarfile', 'the source tar file will be installed.', Dir('#.').abspath+"/release/escript_src.tar.gz"),    ('sys_pyinstall', 'where the system esys python modules will be installed',   sys_dir_packages),
196    ('test_tarfile', 'the test tar file will be installed.', Dir('#.').abspath+"/release/escript_tests.tar.gz"),    ('sys_exinstall', 'where the system esys examples will be installed',         sys_dir_examples),
197    ('examples_tarfile', 'the examples tar file will be installed.', Dir('#.').abspath+"/release/doc/escript_examples.tar.gz"),    ('src_zipfile', 'the source zip file will be installed.',              Dir('#.').abspath+"/release/escript_src.zip"),
198    ('examples_zipfile', 'the examples zip file will be installed.', Dir('#.').abspath+"/release/doc/escript_examples.zip"),    ('test_zipfile', 'the test zip file will be installed.',               Dir('#.').abspath+"/release/escript_tests.zip"),
199    ('guide_pdf', 'name of the user guide in pdf format', Dir('#.').abspath+"/release/doc/user/guide.pdf"),    ('src_tarfile', 'the source tar file will be installed.',              Dir('#.').abspath+"/release/escript_src.tar.gz"),
200    ('guide_html', 'name of the directory for user guide in html format', Dir('#.').abspath+"/release/doc/user/html"),    ('test_tarfile', 'the test tar file will be installed.',               Dir('#.').abspath+"/release/escript_tests.tar.gz"),
201      ('examples_tarfile', 'the examples tar file will be installed.',       Dir('#.').abspath+"/release/doc/escript_examples.tar.gz"),
202      ('examples_zipfile', 'the examples zip file will be installed.',       Dir('#.').abspath+"/release/doc/escript_examples.zip"),
203      ('guide_pdf', 'name of the user guide in pdf format',                  Dir('#.').abspath+"/release/doc/user/guide.pdf"),
204      ('api_epydoc', 'name of the epydoc api docs directory',                Dir('#.').abspath+"/release/doc/epydoc"),
205      ('guide_html', 'name of the directory for user guide in html format',  Dir('#.').abspath+"/release/doc/user/html"),
206      ('api_doxygen', 'name of the doxygen api docs directory',prefix+"/release/doc/doxygen"),
207  # Compilation options  # Compilation options
208    BoolOption('dodebug', 'Do you want a debug build?', 'no'),    BoolOption('dodebug', 'Do you want a debug build?', 'no'),
209    ('options_file', "Optional file containing preferred options. Ignored if it doesn't exist (default: scons/hostname_options.py)", options_file),    BoolOption('bounds_check', 'Do you want extra array bounds checking?', 'no'),
210      ('options_file', "Optional file containing preferred options. Ignored if it doesn't exist (default: scons/<hostname>_options.py)", options_file),
211    ('cc_defines','C/C++ defines to use', None),    ('cc_defines','C/C++ defines to use', None),
212    ('cc_flags','C compiler flags to use (Release build)', '-O3 -std=c99 -ffast-math -fpic -Wno-unknown-pragmas'),    ('cc_flags','C compiler flags to use (Release build)', cc_flags_default),
213    ('cc_flags_debug', 'C compiler flags to use (Debug build)', '-g -O0 -ffast-math -std=c99 -fpic -Wno-unknown-pragmas'),    ('cc_flags_debug', 'C compiler flags to use (Debug build)', cc_flags_debug_default),
214    ('cxx_flags', 'C++ compiler flags to use (Release build)', '--no-warn -ansi'),    ('cxx_flags', 'C++ compiler flags to use (Release build)', cxx_flags_default),
215    ('cxx_flags_debug', 'C++ compiler flags to use (Debug build)', '--no-warn -ansi -DDOASSERT -DDOPROF'),    ('cxx_flags_debug', 'C++ compiler flags to use (Debug build)', cxx_flags_debug_default),
216      ('omp_flags', 'OpenMP compiler flags to use (Release build)', ''),
217      ('omp_flags_debug', 'OpenMP compiler flags to use (Debug build)', ''),
218    ('ar_flags', 'Static library archiver flags to use', None),    ('ar_flags', 'Static library archiver flags to use', None),
219    ('sys_libs', 'System libraries to link with', None),    ('sys_libs', 'System libraries to link with', None),
220    ('tar_flags','flags for zip files','-c -z'),    ('tar_flags','flags for zip files','-c -z'),
221  # MKL  # MKL
222    PathOption('mkl_path', 'Path to MKL includes', None),    PathOption('mkl_path', 'Path to MKL includes', None),
223    PathOption('mkl_lib_path', 'Path to MKL libs', None),    PathOption('mkl_lib_path', 'Path to MKL libs', None),
224    ('mkl_libs', 'MKL libraries to link with', None),    ('mkl_libs', 'MKL libraries to link with', None),
225  # SCSL  # SCSL
226    PathOption('scsl_path', 'Path to SCSL includes', None),    PathOption('scsl_path', 'Path to SCSL includes', None),
227    PathOption('scsl_lib_path', 'Path to SCSL libs', None),    PathOption('scsl_lib_path', 'Path to SCSL libs', None),
228    ('scsl_libs', 'SCSL libraries to link with', None),    ('scsl_libs', 'SCSL libraries to link with', None),
229  # UMFPACK    ('scsl_libs_MPI', 'SCSL libraries to link with for MPI build', None),
230    PathOption('umf_path', 'Path to UMF includes', None),  # UMFPACK
231    PathOption('umf_lib_path', 'Path to UMF libs', None),    PathOption('ufc_path', 'Path to UFconfig includes', ufc_path_default),
232    ('umf_libs', 'UMF libraries to link with', None),    PathOption('umf_path', 'Path to UMFPACK includes', umf_path_default),
233      PathOption('umf_lib_path', 'Path to UMFPACK libs', umf_lib_path_default),
234      ('umf_libs', 'UMFPACK libraries to link with', umf_libs_default),
235    # AMD (used by UMFPACK)
236      PathOption('amd_path', 'Path to AMD includes', amd_path_default),
237      PathOption('amd_lib_path', 'Path to AMD libs', amd_lib_path_default),
238      ('amd_libs', 'AMD libraries to link with', amd_libs_default),
239    # TRILINOS
240      PathOption('trilinos_path', 'Path to TRILINOS includes', None),
241      PathOption('trilinos_lib_path', 'Path to TRILINOS libs', None),
242      ('trilinos_libs', 'TRILINOS libraries to link with', None),
243    # BLAS
244      PathOption('blas_path', 'Path to BLAS includes', None),
245      PathOption('blas_lib_path', 'Path to BLAS libs', None),
246      ('blas_libs', 'BLAS libraries to link with', None),
247    # netCDF
248      ('useNetCDF', 'switch on/off the usage of netCDF', useNetCDF_default),
249      PathOption('netCDF_path', 'Path to netCDF includes', netCDF_path_default),
250      PathOption('netCDF_lib_path', 'Path to netCDF libs', netCDF_lib_path_default),
251      ('netCDF_libs', 'netCDF C++ libraries to link with', netCDF_libs_default),
252  # Python  # Python
253  # locations of include files for python  # locations of include files for python
254    PathOption('python_path', 'Path to Python includes', '/usr/include/python%s.%s'%(sys.version_info[0],sys.version_info[1])),  # FIXME: python_path should be python_inc_path and the same for boost etc.
255    PathOption('python_lib_path', 'Path to Python libs', '/usr/lib'),    PathOption('python_path', 'Path to Python includes', python_path_default),
256    ('python_lib', 'Python libraries to link with', ["python%s.%s"%(sys.version_info[0],sys.version_info[1]),]),    PathOption('python_lib_path', 'Path to Python libs', python_lib_path_default),
257      ('python_lib', 'Python libraries to link with', python_lib_default),
258      ('python_cmd', 'Python command', 'python'),
259  # Boost  # Boost
260    PathOption('boost_path', 'Path to Boost includes', '/usr/include'),    PathOption('boost_path', 'Path to Boost includes', boost_path_default),
261    PathOption('boost_lib_path', 'Path to Boost libs', '/usr/lib'),    PathOption('boost_lib_path', 'Path to Boost libs', boost_lib_path_default),
262    ('boost_lib', 'Boost libraries to link with', ['boost_python',]),    ('boost_lib', 'Boost libraries to link with', boost_lib_default),
263  # Doc building  # Doc building
264    PathOption('doxygen_path', 'Path to Doxygen executable', None),  #  PathOption('doxygen_path', 'Path to Doxygen executable', None),
265    PathOption('epydoc_path', 'Path to Epydoc executable', None),  #  PathOption('epydoc_path', 'Path to Epydoc executable', None),
   PathOption('epydoc_pythonpath', 'Path to Epydoc python files', None),  
266  # PAPI  # PAPI
267    PathOption('papi_path', 'Path to PAPI includes', None),    PathOption('papi_path', 'Path to PAPI includes', None),
268    PathOption('papi_lib_path', 'Path to PAPI libs', None),    PathOption('papi_lib_path', 'Path to PAPI libs', None),
269    ('papi_libs', 'PAPI libraries to link with', None),    ('papi_libs', 'PAPI libraries to link with', None),
270      ('papi_instrument_solver', 'use PAPI in Solver.c to instrument each iteration of the solver', None),
271    # MPI
272      BoolOption('useMPI', 'Compile parallel version using MPI', useMPI_default),
273      ('MPICH_IGNORE_CXX_SEEK', 'name of macro to ignore MPI settings of C++ SEEK macro (for MPICH)' , 'MPICH_IGNORE_CXX_SEEK'),
274      PathOption('mpi_path', 'Path to MPI includes', mpi_path_default),
275      ('mpi_run', 'mpirun name' , mpi_run_default),
276      PathOption('mpi_lib_path', 'Path to MPI libs (needs to be added to the LD_LIBRARY_PATH)',mpi_lib_path_default),
277      ('mpi_libs', 'MPI libraries to link with (needs to be shared!)', mpi_libs_default)
278  )  )
279    #=================================================================================================
280    #
281    #   Note: On the Altix the intel compilers are not automatically
282    #   detected by scons intelc.py script. The Altix has a different directory
283    #   path and in some locations the "modules" facility is used to support
284    #   multiple compiler versions. This forces the need to import the users PATH
285    #   environment which isn't the "scons way"
286    #   This doesn't impact linux and windows which will use the default compiler (g++ or msvc, or the intel compiler if it is installed on both platforms)
287    #   FIXME: Perhaps a modification to intelc.py will allow better support for ia64 on altix
288    #
289    
290    if IS_WINDOWS_PLATFORM:
291          env = Environment(tools = ['default', 'msvc'], options = opts)
292    else:
293       if os.uname()[4]=='ia64':
294          env = Environment(tools = ['default', 'intelc'], options = opts)
295          if env['CXX'] == 'icpc':
296             env['LINK'] = env['CXX'] # version >=9 of intel c++ compiler requires use of icpc to link in C++ runtimes (icc does not). FIXME: this behaviour could be directly incorporated into scons intelc.py
297       else:
298          env = Environment(tools = ['default'], options = opts)
299    Help(opts.GenerateHelpText(env))
300    
301  # Initialise Scons Build Environment  if env['bounds_check']:
302  # check for user environment variables we are interested in     env.Append(CPPDEFINES = [ 'BOUNDS_CHECK' ])
303       env.Append(CXXDEFINES = [ 'BOUNDS_CHECK' ])
304    
305    #=================================================================================================
306    #
307    #     Initialise Scons Build Environment
308    #     check for user environment variables we are interested in
309  try:  try:
310     python_path = os.environ['PYTHONPATH']     tmp = os.environ['PYTHONPATH']
311       env['ENV']['PYTHONPATH'] = tmp
312  except KeyError:  except KeyError:
313     python_path = ''     pass
314    
315    env.PrependENVPath('PYTHONPATH', source_root)
316    
317  try:  try:
318     path = os.environ['PATH']     omp_num_threads = os.environ['OMP_NUM_THREADS']
319  except KeyError:  except KeyError:
320     path = ''     omp_num_threads = 1
321    env['ENV']['OMP_NUM_THREADS'] = omp_num_threads
322    
323  try:  try:
324     ld_library_path = os.environ['LD_LIBRARY_PATH']     path = os.environ['PATH']
325       env['ENV']['PATH'] = path
326  except KeyError:  except KeyError:
327     ld_library_path = ''     omp_num_threads = 1
328    
329  # Note: On the Altix the intel compilers are not automatically  env['ENV']['OMP_NUM_THREADS'] = omp_num_threads
 # detected by scons intelc.py script. The Altix has a different directory  
 # path and in some locations the "modules" facility is used to support  
 # multiple compiler versions. This forces the need to import the users PATH  
 # environment which isn't the "scons way"  
 # This doesn't impact linux and windows which will use the default compiler (g++ or msvc, or the intel compiler if it is installed on both platforms)  
 # FIXME: Perhaps a modification to intelc.py will allow better support for ia64 on altix  
   
 if os.name != "nt" and os.uname()[4]=='ia64':  
    env = Environment(ENV = {'PATH':path}, tools = ['default', 'intelc'], options = opts)  
    env['ENV']['PATH'] = path  
    env['ENV']['LD_LIBRARY_PATH'] = ld_library_path  
    env['ENV']['PYTHONPATH'] = python_path  
    if env['CXX'] == 'icpc':  
       env['LINK'] = env['CXX'] # version >=9 of intel c++ compiler requires use of icpc to link in C++ runtimes (icc does not). FIXME: this behaviour could be directly incorporated into scons intelc.py  
 elif os.name == "nt":  
    # FIXME: Need to implement equivalent of ld library path for windoze  
    env = Environment(tools = ['default', 'intelc'], options = opts)  
    env['ENV']['PYTHONPATH'] = python_path  
 else:  
    env = Environment(tools = ['default'], options = opts)  
    env['ENV']['PATH'] = path  
    env['ENV']['LD_LIBRARY_PATH'] = ld_library_path  
    env['ENV']['PYTHONPATH'] = python_path  
330    
 # Setup help for options  
 Help(opts.GenerateHelpText(env))  
331    
332  # Add some customer builders  # Copy some variables from the system environment to the build environment
333    try:
334       env['ENV']['DISPLAY'] = os.environ['DISPLAY']
335       env['ENV']['XAUTHORITY'] = os.environ['XAUTHORITY']
336       home_temp = os.environ['HOME']   # MPICH2's mpd needs $HOME to find $HOME/.mpd.conf
337       env['ENV']['HOME'] = home_temp
338    except KeyError:
339       pass
340    
341    try:
342       tmp = os.environ['PATH']
343       env['ENV']['PATH'] = tmp
344    except KeyError:
345       pass
346    
347    try:
348       tmp = os.environ['LD_LIBRARY_PATH']
349       env['ENV']['LD_LIBRARY_PATH'] = tmp
350    except KeyError:
351       pass
352    #==========================================================================
353    #
354    #    Add some customer builders
355    #
356  py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
357  env.Append(BUILDERS = {'PyCompile' : py_builder});  env.Append(BUILDERS = {'PyCompile' : py_builder});
358    
359  if env['PLATFORM'] == "win32":  runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed',
360     runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', src_suffix='.exe', single_source=True)                                src_suffix=env['PROGSUFFIX'], single_source=True)
361  else:  
    runUnitTest_builder = Builder(action = scons_extensions.runUnitTest, suffix = '.passed', single_source=True)  
362  env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});  env.Append(BUILDERS = {'RunUnitTest' : runUnitTest_builder});
363    
364  runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)  runPyUnitTest_builder = Builder(action = scons_extensions.runPyUnitTest, suffix = '.passed', src_suffic='.py', single_source=True)
# Line 156  try: Line 369  try:
369     incinstall = env['incinstall']     incinstall = env['incinstall']
370     env.Append(CPPPATH = [incinstall,])     env.Append(CPPPATH = [incinstall,])
371  except KeyError:  except KeyError:
372     incinstall = None       incinstall = None
373  try:  try:
374     libinstall = env['libinstall']     libinstall = env['libinstall']
375     env.Append(LIBPATH = [libinstall,])     env.Append(LIBPATH = [libinstall,]) # Adds -L for building of libescript.so libfinley.so escriptcpp.so finleycpp.so
376     env.PrependENVPath('LD_LIBRARY_PATH', libinstall)     env.PrependENVPath('LD_LIBRARY_PATH', libinstall)
377       if IS_WINDOWS_PLATFORM :
378          env.PrependENVPath('PATH', libinstall)
379          env.PrependENVPath('PATH', env['boost_lib_path'])
380  except KeyError:  except KeyError:
381     libinstall = None       libinstall = None
 try:  
    pyinstall = env['pyinstall']+'/esys' # all targets will install into pyinstall/esys but PYTHONPATH points at straight pyinstall so you go import esys.escript etc  
    env.PrependENVPath('PYTHONPATH', env['pyinstall'])  
 except KeyError:  
    pyinstall = None    
382  try:  try:
383     dodebug = env['dodebug']     pyinstall = env['pyinstall'] # all targets will install into pyinstall/esys but PYTHONPATH points at straight pyinstall so you go import esys.escript etc
384  except KeyError:  except KeyError:
385     dodebug = None       pyinstall = None
386    
387  try:  try:
388     cc_defines = env['cc_defines']     cc_defines = env['cc_defines']
389     env.Append(CPPDEFINES = [cc_defines,])     env.Append(CPPDEFINES = cc_defines)
390  except KeyError:  except KeyError:
391     pass     pass
 if dodebug:  
    try:  
       flags = env['cc_flags_debug']  
       env.Append(CCFLAGS = flags)  
    except KeyError:  
       pass  
 else:  
    try:  
       flags = env['cc_flags']  
       env.Append(CCFLAGS = flags)  
    except KeyError:  
       pass  
   
 if dodebug:  
    try:  
       flags = env['cxx_flags_debug']  
       env.Append(CXXFLAGS = flags)  
    except KeyError:  
       pass  
 else:  
    try:  
       flags = env['cxx_flags']  
       env.Append(CXXFLAGS = flags)  
    except KeyError:  
       pass  
   
392  try:  try:
393     flags = env['ar_flags']     flags = env['ar_flags']
394     env.Append(ARFLAGS = flags)     env.Append(ARFLAGS = flags)
395  except KeyError:  except KeyError:
396     ar_flags = None       ar_flags = None
397  try:  try:
398     sys_libs = env['sys_libs']     sys_libs = env['sys_libs']
399  except KeyError:  except KeyError:
400     sys_libs = ''     sys_libs = []
401    
402  try:  try:
403     tar_flags = env['tar_flags']     tar_flags = env['tar_flags']
# Line 220  except KeyError: Line 406  except KeyError:
406     pass     pass
407    
408  try:  try:
409     includes = env['mkl_path']     exinstall = env['exinstall']
    env.Append(CPPPATH = [includes,])  
410  except KeyError:  except KeyError:
411     pass     exinstall = None
   
412  try:  try:
413     lib_path = env['mkl_lib_path']     sys_libinstall = env['sys_libinstall']
    env.Append(LIBPATH = [lib_path,])  
414  except KeyError:  except KeyError:
415     pass     sys_libinstall = None
416    try:
417       sys_pyinstall = env['sys_pyinstall']
418    except KeyError:
419       sys_pyinstall = None
420    try:
421       sys_exinstall = env['sys_exinstall']
422    except KeyError:
423       sys_exinstall = None
424    
425    # ====================== debugging ===================================
426  try:  try:
427     mkl_libs = env['mkl_libs']     dodebug = env['dodebug']
428  except KeyError:  except KeyError:
429     mkl_libs = ''     dodebug = None
430    
431    # === switch on omp ===================================================
432  try:  try:
433     includes = env['scsl_path']    omp_flags = env['omp_flags']
    env.Append(CPPPATH = [includes,])  
434  except KeyError:  except KeyError:
435     pass    omp_flags = ''
436    
437  try:  try:
438     lib_path = env['scsl_lib_path']    omp_flags_debug = env['omp_flags_debug']
    env.Append(LIBPATH = [lib_path,])  
439  except KeyError:  except KeyError:
440     pass    omp_flags_debug = ''
441    
442    # ========= use mpi? =====================================================
443  try:  try:
444     scsl_libs = env['scsl_libs']     useMPI = env['useMPI']
445  except KeyError:  except KeyError:
446     scsl_libs = ''     useMPI = None
447    # ========= set compiler flags ===========================================
448    
449    if dodebug:
450        try:
451          flags = env['cc_flags_debug'] + ' ' + omp_flags_debug
452          env.Append(CCFLAGS = flags)
453        except KeyError:
454          pass
455    else:
456       try:
457          flags = env['cc_flags'] + ' ' + omp_flags
458          env.Append(CCFLAGS = flags)
459       except KeyError:
460          pass
461    if dodebug:
462         try:
463            flags = env['cxx_flags_debug']
464            env.Append(CXXFLAGS = flags)
465         except KeyError:
466            pass
467    else:
468         try:
469            flags = env['cxx_flags']
470            env.Append(CXXFLAGS = flags)
471         except KeyError:
472            pass
473    try:
474         if env['CC'] == 'gcc': env.Append(CCFLAGS = "-pedantic-errors -Wno-long-long")
475    except:
476         pass
477    
478    # ============= set mkl (but only of no MPI) =====================================
479    if not useMPI:
480       try:
481          includes = env['mkl_path']
482          env.Append(CPPPATH = [includes,])
483       except KeyError:
484          pass
485    
486       try:
487          lib_path = env['mkl_lib_path']
488          env.Append(LIBPATH = [lib_path,])
489       except KeyError:
490          pass
491    
492       try:
493          mkl_libs = env['mkl_libs']
494       except KeyError:
495          mkl_libs = []
496    else:
497         mkl_libs = []
498    
499    # ============= set scsl (but only of no MPI) =====================================
500    if not useMPI:
501       try:
502          includes = env['scsl_path']
503          env.Append(CPPPATH = [includes,])
504       except KeyError:
505          pass
506    
507       try:
508          lib_path = env['scsl_lib_path']
509          env.Append(LIBPATH = [lib_path,])
510       except KeyError:
511          pass
512      
513       try:
514          scsl_libs = env['scsl_libs']
515       except KeyError:
516          scsl_libs = [ ]
517    
518    else:
519        scsl_libs =  []
520    
521    # ============= set TRILINOS (but only with MPI) =====================================
522    if useMPI:
523       try:
524          includes = env['trilinos_path']
525          env.Append(CPPPATH = [includes,])
526       except KeyError:
527          pass
528    
529       try:
530          lib_path = env['trilinos_lib_path']
531          env.Append(LIBPATH = [lib_path,])
532       except KeyError:
533          pass
534    
535       try:
536          trilinos_libs = env['trilinos_libs']
537       except KeyError:
538          trilinos_libs = []
539    else:
540         trilinos_libs = []
541    
542    
543    # ============= set umfpack (but only without MPI) =====================================
544    umf_libs=[ ]
545    if not useMPI:
546       try:
547          includes = env['umf_path']
548          env.Append(CPPPATH = [includes,])
549       except KeyError:
550          pass
551    
552       try:
553          lib_path = env['umf_lib_path']
554          env.Append(LIBPATH = [lib_path,])
555       except KeyError:
556          pass
557    
558       try:
559          umf_libs = env['umf_libs']
560          umf_libs+=umf_libs
561       except KeyError:
562          pass
563    
564       try:
565          includes = env['ufc_path']
566          env.Append(CPPPATH = [includes,])
567       except KeyError:
568          pass
569    
570       try:
571          includes = env['amd_path']
572          env.Append(CPPPATH = [includes,])
573       except KeyError:
574          pass
575    
576       try:
577          lib_path = env['amd_lib_path']
578          env.Append(LIBPATH = [lib_path,])
579       except KeyError:
580          pass
581    
582       try:
583          amd_libs = env['amd_libs']
584          umf_libs+=amd_libs
585       except KeyError:
586          pass
587    
588    # ============= set TRILINOS (but only with MPI) =====================================
589    if useMPI:
590       try:
591          includes = env['trilinos_path']
592          env.Append(CPPPATH = [includes,])
593       except KeyError:
594          pass
595    
596       try:
597          lib_path = env['trilinos_lib_path']
598          env.Append(LIBPATH = [lib_path,])
599       except KeyError:
600          pass
601    
602       try:
603          trilinos_libs = env['trilinos_libs']
604       except KeyError:
605          trilinos_libs = []
606    else:
607         trilinos_libs = []
608    
609    # ============= set blas =====================================
610  try:  try:
611     includes = env['umf_path']     includes = env['blas_path']
612     env.Append(CPPPATH = [includes,])     env.Append(CPPPATH = [includes,])
613  except KeyError:  except KeyError:
614     pass     pass
615    
616  try:  try:
617     lib_path = env['umf_lib_path']     lib_path = env['blas_lib_path']
618     env.Append(LIBPATH = [lib_path,])     env.Append(LIBPATH = [lib_path,])
619  except KeyError:  except KeyError:
620     pass     pass
621    
622  try:  try:
623     umf_libs = env['umf_libs']     blas_libs = env['blas_libs']
624  except KeyError:  except KeyError:
625     umf_libs = ''     blas_libs = [ ]
626    
627    # ========== netcdf (currently not supported with mpi) ====================================
628    if useMPI:
629       useNetCDF = 'no'
630    else:
631       try:
632          useNetCDF = env['useNetCDF']
633       except KeyError:
634          useNetCDF = 'yes'
635          pass
636        
637    if useNetCDF == 'yes':
638       try:
639          netCDF_libs = env['netCDF_libs']
640       except KeyError:
641          pass
642    
643       env.Append(LIBS = netCDF_libs)
644       env.Append(CPPDEFINES = [ 'USE_NETCDF' ])
645       try:
646          includes = env['netCDF_path']
647          env.Append(CPPPATH = [includes,])
648       except KeyError:
649          pass
650    
651       try:
652          lib_path = env['netCDF_lib_path']
653          env.Append(LIBPATH = [ lib_path, ])
654          if IS_WINDOWS_PLATFORM :
655             env.PrependENVPath('PATH', lib_path)
656       except KeyError:
657          pass
658    else:
659       print "Warning: Installation is not configured with netCDF. Some I/O function may not be available."
660       netCDF_libs=[ ]
661    
662    # ====================== boost ======================================
663  try:  try:
664     includes = env['boost_path']     includes = env['boost_path']
665     env.Append(CPPPATH = [includes,])     env.Append(CPPPATH = [includes,])
# Line 271  except KeyError: Line 668  except KeyError:
668  try:  try:
669     lib_path = env['boost_lib_path']     lib_path = env['boost_lib_path']
670     env.Append(LIBPATH = [lib_path,])     env.Append(LIBPATH = [lib_path,])
671       if IS_WINDOWS_PLATFORM :
672          env.PrependENVPath('PATH', lib_path)
673  except KeyError:  except KeyError:
674     pass     pass
675  try:  try:
676     boost_lib = env['boost_lib']     boost_lib = env['boost_lib']
677  except KeyError:  except KeyError:
678     boost_lib = None       boost_lib = None
679    # ====================== python ======================================
680  try:  try:
681     includes = env['python_path']     includes = env['python_path']
682     env.Append(CPPPATH = [includes,])     env.Append(CPPPATH = [includes,])
# Line 290  except KeyError: Line 690  except KeyError:
690  try:  try:
691     python_lib = env['python_lib']     python_lib = env['python_lib']
692  except KeyError:  except KeyError:
693     python_lib = None       python_lib = None
694    # =============== documentation =======================================
695  try:  try:
696     doxygen_path = env['doxygen_path']     doxygen_path = env['doxygen_path']
697  except KeyError:  except KeyError:
698     doxygen_path = None       doxygen_path = None
699  try:  try:
700     epydoc_path = env['epydoc_path']     epydoc_path = env['epydoc_path']
701  except KeyError:  except KeyError:
702     epydoc_path = None       epydoc_path = None
703    # =============== PAPI =======================================
704  try:  try:
705     epydoc_pythonpath = env['epydoc_pythonpath']     includes = env['papi_path']
706       env.Append(CPPPATH = [includes,])
707  except KeyError:  except KeyError:
708     epydoc_pythonpath = None       pass
709    try:
710       lib_path = env['papi_lib_path']
711       env.Append(LIBPATH = [lib_path,])
712    except KeyError:
713       pass
714    try:
715       papi_libs = env['papi_libs']
716    except KeyError:
717       papi_libs = None
718    # ============= set mpi =====================================
719    if useMPI:
720       env.Append(CPPDEFINES=['PASO_MPI',])
721       try:
722          includes = env['mpi_path']
723          env.Append(CPPPATH = [includes,])
724       except KeyError:
725          pass
726       try:
727          lib_path = env['mpi_lib_path']
728          env.Append(LIBPATH = [lib_path,])
729          env['ENV']['LD_LIBRARY_PATH']+=":"+lib_path
730       except KeyError:
731          pass
732       try:
733          mpi_libs = env['mpi_libs']
734       except KeyError:
735          mpi_libs = []
736    
737       try:
738          mpi_run = env['mpi_run']
739       except KeyError:
740          mpi_run = ''
741    
742       try:
743           mpich_ignore_cxx_seek=env['MPICH_IGNORE_CXX_SEEK']
744           env.Append(CPPDEFINES = [ mpich_ignore_cxx_seek ] )
745       except KeyError:
746          pass
747    else:
748      mpi_libs=[]
749      mpi_run = mpi_run_default
750    # =========== zip files ===========================================
751  try:  try:
752     includes = env['papi_path']     includes = env['papi_path']
753     env.Append(CPPPATH = [includes,])     env.Append(CPPPATH = [includes,])
# Line 316  except KeyError: Line 761  except KeyError:
761  try:  try:
762     papi_libs = env['papi_libs']     papi_libs = env['papi_libs']
763  except KeyError:  except KeyError:
764     papi_libs = None       papi_libs = None
765    try:
766       papi_instrument_solver = env['papi_instrument_solver']
767    except KeyError:
768       papi_instrument_solver = None
769    
770    
771    # ============= and some helpers =====================================
772    try:
773       doxygen_path = env['doxygen_path']
774    except KeyError:
775       doxygen_path = None
776    try:
777       epydoc_path = env['epydoc_path']
778    except KeyError:
779       epydoc_path = None
780  try:  try:
781     src_zipfile = env.File(env['src_zipfile'])     src_zipfile = env.File(env['src_zipfile'])
782  except KeyError:  except KeyError:
783     src_zipfile = None       src_zipfile = None
784  try:  try:
785     test_zipfile = env.File(env['test_zipfile'])     test_zipfile = env.File(env['test_zipfile'])
786  except KeyError:  except KeyError:
787     test_zipfile = None       test_zipfile = None
788  try:  try:
789     examples_zipfile = env.File(env['examples_zipfile'])     examples_zipfile = env.File(env['examples_zipfile'])
790  except KeyError:  except KeyError:
791     examples_zipfile = None       examples_zipfile = None
792    
793  try:  try:
794     src_tarfile = env.File(env['src_tarfile'])     src_tarfile = env.File(env['src_tarfile'])
795  except KeyError:  except KeyError:
796     src_tarfile = None       src_tarfile = None
797  try:  try:
798     test_tarfile = env.File(env['test_tarfile'])     test_tarfile = env.File(env['test_tarfile'])
799  except KeyError:  except KeyError:
800     test_tarfile = None       test_tarfile = None
801  try:  try:
802     examples_tarfile = env.File(env['examples_tarfile'])     examples_tarfile = env.File(env['examples_tarfile'])
803  except KeyError:  except KeyError:
804     examples_tarfile = None       examples_tarfile = None
805    
806  try:  try:
807     guide_pdf = env.File(env['guide_pdf'])     guide_pdf = env.File(env['guide_pdf'])
808  except KeyError:  except KeyError:
809     guide_pdf = None       guide_pdf = None
810    
811  try:  try:
812     guide_html_index = env.File('index.htm',env['guide_html'])     guide_html_index = env.File('index.htm',env['guide_html'])
813  except KeyError:  except KeyError:
814     guide_html_index = None       guide_html_index = None
815    
816    try:
817       api_epydoc = env.Dir(env['api_epydoc'])
818    except KeyError:
819       api_epydoc = None
820    
821    try:
822       api_doxygen = env.Dir(env['api_doxygen'])
823    except KeyError:
824       api_doxygen = None
825    
826    try:
827       svn_pipe = os.popen("svnversion -n .")
828       global_revision = svn_pipe.readlines()
829       svn_pipe.close()
830       global_revision = re.sub("[^0-9]", "", global_revision[0])
831    except:
832       global_revision = "0"
833    env.Append(CPPDEFINES = "SVN_VERSION="+global_revision)
834    
835    # Python install - esys __init__.py
836    init_target = env.Command(pyinstall+'/__init__.py', None, Touch('$TARGET'))
837    
838    # FIXME: exinstall and friends related to examples are not working.
839    build_target = env.Alias('build',[libinstall,incinstall,pyinstall,init_target])
840    
841    env.Default(build_target)
842    
843  # Zipgets  # Zipgets
844  env.Default(libinstall)  env.Alias('release_src',[ src_zipfile, src_tarfile ])
 env.Default(incinstall)  
 env.Default(pyinstall)  
 env.Alias('release_src',[ src_zipfile, src_tarfile ])    
845  env.Alias('release_tests',[ test_zipfile, test_tarfile])  env.Alias('release_tests',[ test_zipfile, test_tarfile])
846  env.Alias('release_examples',[ examples_zipfile, examples_tarfile])  env.Alias('release_examples',[ examples_zipfile, examples_tarfile])
847  env.Alias('docs',[ 'release_examples', guide_pdf, guide_html_index ])  env.Alias('examples_zipfile',examples_zipfile)
848    env.Alias('examples_tarfile',examples_tarfile)
849    env.Alias('api_epydoc',api_epydoc)
850    env.Alias('api_doxygen',api_doxygen)
851    env.Alias('guide_html_index',guide_html_index)
852    env.Alias('guide_pdf', guide_pdf)
853    env.Alias('docs',[ 'release_examples', 'guide_pdf', api_epydoc, api_doxygen, guide_html_index])
854  env.Alias('release', ['release_src', 'release_tests', 'docs'])  env.Alias('release', ['release_src', 'release_tests', 'docs'])
855  env.Alias('build_tests')    # target to build all C++ tests  
856  env.Alias('build_py_tests') # target to build all python tests  env.Alias('build_tests',build_target)    # target to build all C++ tests
857    env.Alias('build_py_tests',build_target) # target to build all python tests
858  env.Alias('build_all_tests', [ 'build_tests', 'build_py_tests' ] ) # target to build all python tests  env.Alias('build_all_tests', [ 'build_tests', 'build_py_tests' ] ) # target to build all python tests
859  env.Alias('run_tests', 'build_tests')   # target to run all C++ test  env.Alias('run_tests', 'build_tests')   # target to run all C++ test
860  env.Alias('py_tests', 'build_py_tests') # taget to run all released python tests  env.Alias('py_tests', 'build_py_tests') # taget to run all released python tests
861  env.Alias('all_tests', ['run_tests', 'py_tests']) # target to run all C++ and released python tests  env.Alias('all_tests', ['run_tests', 'py_tests']) # target to run all C++ and released python tests
862    
 # Python install - esys __init__.py  
 # This is just an empty file but stills need to be touched so add a special target and Command. Note you can't use the scons Touch() function as it will not  
 # create the file if it doesn't exist  
 env.Command(pyinstall+'/__init__.py', None, 'touch $TARGET')  
863    
864  # Allow sconscripts to see the env  # Allow sconscripts to see the env
865  Export(["env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs",  Export(["IS_WINDOWS_PLATFORM", "env", "incinstall", "libinstall", "pyinstall", "dodebug", "mkl_libs", "scsl_libs", "umf_libs", "blas_libs", "netCDF_libs", "useNetCDF", "mpi_run",
866      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "epydoc_pythonpath", "papi_libs",      "boost_lib", "python_lib", "doxygen_path", "epydoc_path", "papi_libs",
867          "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile",          "sys_libs", "test_zipfile", "src_zipfile", "test_tarfile", "src_tarfile", "examples_tarfile", "examples_zipfile", "trilinos_libs", "mpi_libs", "papi_instrument_solver",
868          "guide_pdf", "guide_html_index"])          "guide_pdf", "guide_html_index", "api_epydoc", "api_doxygen", "useMPI" ])
869    
870  # End initialisation section  # End initialisation section
871  # Begin configuration section  # Begin configuration section
# Line 389  release_srcfiles=[env.File('SConstruct') Line 874  release_srcfiles=[env.File('SConstruct')
874  release_testfiles=[env.File('README_TESTS'),]  release_testfiles=[env.File('README_TESTS'),]
875  env.Zip(src_zipfile, release_srcfiles)  env.Zip(src_zipfile, release_srcfiles)
876  env.Zip(test_zipfile, release_testfiles)  env.Zip(test_zipfile, release_testfiles)
877  env.Tar(src_tarfile, release_srcfiles)  try:
878  env.Tar(test_tarfile, release_testfiles)     env.Tar(src_tarfile, release_srcfiles)
879       env.Tar(test_tarfile, release_testfiles)
880    except AttributeError:
881       pass
882  # Insert new components to be build here  # Insert new components to be build here
883  # FIXME: might be nice to replace this verbosity with a list of targets and some  # FIXME: might be nice to replace this verbosity with a list of targets and some
884  # FIXME: nifty python to create the lengthy but very similar env.Sconscript lines  # FIXME: nifty python to create the lengthy but very similar env.Sconscript lines
# Line 399  env.Tar(test_tarfile, release_testfiles) Line 886  env.Tar(test_tarfile, release_testfiles)
886  env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)  env.SConscript(dirs = ['tools/CppUnitTest/src'], build_dir='build/$PLATFORM/tools/CppUnitTest', duplicate=0)
887  # C/C++ Libraries  # C/C++ Libraries
888  env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)  env.SConscript(dirs = ['paso/src'], build_dir='build/$PLATFORM/paso', duplicate=0)
889  env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)  # bruce is removed for now as it doesn't really do anything
890    # env.SConscript(dirs = ['bruce/src'], build_dir='build/$PLATFORM/bruce', duplicate=0)
891  env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)  env.SConscript(dirs = ['escript/src'], build_dir='build/$PLATFORM/escript', duplicate=0)
892  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], build_dir='build/$PLATFORM/esysUtils', duplicate=0)
893  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)  env.SConscript(dirs = ['finley/src'], build_dir='build/$PLATFORM/finley', duplicate=0)
894  env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)  env.SConscript(dirs = ['modellib/py_src'], build_dir='build/$PLATFORM/modellib', duplicate=0)
895  env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)  env.SConscript(dirs = ['doc'], build_dir='build/$PLATFORM/doc', duplicate=0)
896  #env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0) not part of beta.0  env.SConscript(dirs = ['pyvisi/py_src'], build_dir='build/$PLATFORM/pyvisi', duplicate=0)
897    env.SConscript(dirs = ['pycad/py_src'], build_dir='build/$PLATFORM/pycad', duplicate=0)
898    env.SConscript(dirs = ['pythonMPI/src'], build_dir='build/$PLATFORM/pythonMPI', duplicate=0)
899    #env.SConscript(dirs = ['../test'], build_dir='../test/build', duplicate=0)
900    
901    
902    syslib_install_target = env.installDirectory(sys_libinstall,libinstall)
903    syspy_install_target = env.installDirectory(sys_pyinstall,pyinstall,recursive=True)
904    
905    install_target = env.Alias("install", env.Flatten([syslib_install_target, syspy_install_target]) )

Legend:
Removed from v.707  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26