/[escript]/trunk/SConstruct
ViewVC logotype

Diff of /trunk/SConstruct

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

revision 3597 by caltinay, Thu Sep 15 06:03:17 2011 UTC revision 3892 by jfenwick, Tue Apr 10 08:57:23 2012 UTC
# Line 16  EnsurePythonVersion(2,5) Line 16  EnsurePythonVersion(2,5)
16  import sys, os, platform, re  import sys, os, platform, re
17  from distutils import sysconfig  from distutils import sysconfig
18  from site_init import *  from site_init import *
19    import subprocess
20    from subprocess import PIPE, Popen
21    
22  # Version number to check for in options file. Increment when new features are  # Version number to check for in options file. Increment when new features are
23  # added or existing options changed.  # added or existing options changed.
# Line 47  if not os.path.isfile(options_file): Line 49  if not os.path.isfile(options_file):
49  ############################### Build options ################################  ############################### Build options ################################
50    
51  default_prefix='/usr'  default_prefix='/usr'
52  mpi_flavours=('none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI')  mpi_flavours=('no', 'none', 'MPT', 'MPICH', 'MPICH2', 'OPENMPI', 'INTELMPI')
53  lapack_flavours=('none', 'clapack', 'mkl')  lapack_flavours=('none', 'clapack', 'mkl')
54    
55  vars = Variables(options_file, ARGUMENTS)  vars = Variables(options_file, ARGUMENTS)
# Line 122  vars.AddVariables( Line 124  vars.AddVariables(
124    EnumVariable('forcecollres', 'For testing use only - set the default value for force resolving collective ops', 'leave_alone', allowed_values=('leave_alone', 'on', 'off')),    EnumVariable('forcecollres', 'For testing use only - set the default value for force resolving collective ops', 'leave_alone', allowed_values=('leave_alone', 'on', 'off')),
125    # finer control over library building, intel aggressive global optimisation    # finer control over library building, intel aggressive global optimisation
126    # works with dynamic libraries on windows.    # works with dynamic libraries on windows.
127    ('share_esysutils', 'Build a dynamic esysUtils library', False),    ('build_shared', 'Build dynamic libraries only', False),
   ('share_paso', 'Build a dynamic paso library', False),  
128    ('sys_libs', 'Extra libraries to link with', []),    ('sys_libs', 'Extra libraries to link with', []),
129    ('escript_opts_version', 'Version of options file (do not specify on command line)'),    ('escript_opts_version', 'Version of options file (do not specify on command line)'),
130      ('SVN_VERSION', 'Do not use from options file', -2),
131      ('pythoncmd', 'which python to compile with','python'),
132      ('usepython3', 'Is this a python3 build? (experimental)', False),
133      ('pythonlibname', 'Name of the python library to link. (This is found automatically for python2.X.)', ''),
134  )  )
135    
136  ##################### Create environment and help text #######################  ##################### Create environment and help text #######################
# Line 209  if cc_name == 'icc': Line 214  if cc_name == 'icc':
214      cc_optim    = "-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias -ip"      cc_optim    = "-O3 -ftz -IPF_ftlacc- -IPF_fma -fno-alias -ip"
215      cc_debug    = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"      cc_debug    = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK"
216      omp_flags   = "-openmp -openmp_report0"      omp_flags   = "-openmp -openmp_report0"
217      omp_ldflags = "-openmp -openmp_report0 -lguide -lpthread"      omp_ldflags = "-openmp -openmp_report0 -lpthread"
218      fatalwarning = "-Werror"      fatalwarning = "-Werror"
219  elif cc_name[:3] == 'gcc':  elif cc_name[:3] == 'gcc':
220      # GNU C on any system      # GNU C on any system
# Line 244  if env['cc_extra']  != '': env.Append(CF Line 249  if env['cc_extra']  != '': env.Append(CF
249  if env['cxx_extra'] != '': env.Append(CXXFLAGS = env['cxx_extra'])  if env['cxx_extra'] != '': env.Append(CXXFLAGS = env['cxx_extra'])
250  if env['ld_extra']  != '': env.Append(LINKFLAGS = env['ld_extra'])  if env['ld_extra']  != '': env.Append(LINKFLAGS = env['ld_extra'])
251    
252    if env['usepython3']:
253        env.Append(CPPDEFINES=['ESPYTHON3'])
254    
255  # set up the autolazy values  # set up the autolazy values
256  if env['forcelazy'] == 'on':  if env['forcelazy'] == 'on':
257      env.Append(CPPDEFINES=['FAUTOLAZYON'])      env.Append(CPPDEFINES=['FAUTOLAZYON'])
# Line 284  env.Append(CCFLAGS = env['cc_flags']) Line 292  env.Append(CCFLAGS = env['cc_flags'])
292  # add system libraries  # add system libraries
293  env.AppendUnique(LIBS = env['sys_libs'])  env.AppendUnique(LIBS = env['sys_libs'])
294    
295  # Get the global Subversion revision number for the getVersion() method  
296  try:  global_revision=ARGUMENTS.get('SVN_VERSION', None)
297    if global_revision:
298        global_revision = re.sub(':.*', '', global_revision)
299        global_revision = re.sub('[^0-9]', '', global_revision)
300        if global_revision == '': global_revision='-2'
301    else:
302      # Get the global Subversion revision number for the getVersion() method
303      try:
304      global_revision = os.popen('svnversion -n .').read()      global_revision = os.popen('svnversion -n .').read()
305      global_revision = re.sub(':.*', '', global_revision)      global_revision = re.sub(':.*', '', global_revision)
306      global_revision = re.sub('[^0-9]', '', global_revision)      global_revision = re.sub('[^0-9]', '', global_revision)
307      if global_revision == '': global_revision='-2'      if global_revision == '': global_revision='-2'
308  except:    except:
309      global_revision = '-1'      global_revision = '-1'
310  env['svn_revision']=global_revision  env['svn_revision']=global_revision
311  env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])  env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])
312    
313  if IS_WINDOWS:  if IS_WINDOWS:
314      if not env['share_esysutils']:      if not env['build_shared']:
315          env.Append(CPPDEFINES = ['ESYSUTILS_STATIC_LIB'])          env.Append(CPPDEFINES = ['ESYSUTILS_STATIC_LIB'])
     if not env['share_paso']:  
316          env.Append(CPPDEFINES = ['PASO_STATIC_LIB'])          env.Append(CPPDEFINES = ['PASO_STATIC_LIB'])
317    
318  ###################### Copy required environment vars ########################  ###################### Copy required environment vars ########################
# Line 346  except KeyError: Line 360  except KeyError:
360    
361  ######################## Add some custom builders ############################  ######################## Add some custom builders ############################
362    
363  py_builder = Builder(action = build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  if env['pythoncmd']=='python':
364        py_builder = Builder(action = build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
365    else:
366        py_builder = Builder(action = env['pythoncmd']+" scripts/py_comp.py $SOURCE $TARGET", suffix = '.pyc', src_suffix = '.py', single_source=True)
367  env.Append(BUILDERS = {'PyCompile' : py_builder});  env.Append(BUILDERS = {'PyCompile' : py_builder});
368    
369  runUnitTest_builder = Builder(action = runUnitTest, suffix = '.passed', src_suffix=env['PROGSUFFIX'], single_source=True)  runUnitTest_builder = Builder(action = runUnitTest, suffix = '.passed', src_suffix=env['PROGSUFFIX'], single_source=True)
# Line 385  if conf.CheckFunc('gethostname'): Line 402  if conf.CheckFunc('gethostname'):
402    
403  ######## Python headers & library (required)  ######## Python headers & library (required)
404    
405  python_inc_path=sysconfig.get_python_inc()  # Use the python scons is running
406  if IS_WINDOWS:  if env['pythoncmd']=='python':
407      python_lib_path=os.path.join(sysconfig.get_config_var('prefix'), 'libs')      python_inc_path=sysconfig.get_python_inc()
408  elif env['PLATFORM']=='darwin':      if IS_WINDOWS:
409      python_lib_path=sysconfig.get_config_var('LIBPL')          python_lib_path=os.path.join(sysconfig.get_config_var('prefix'), 'libs')
410  else:      elif env['PLATFORM']=='darwin':
411      python_lib_path=sysconfig.get_config_var('LIBDIR')          python_lib_path=sysconfig.get_config_var('LIBPL')
412  #python_libs=[sysconfig.get_config_var('LDLIBRARY')] # only on linux      else:
413  if IS_WINDOWS:          python_lib_path=sysconfig.get_config_var('LIBDIR')
414      python_libs=['python%s%s'%(sys.version_info[0], sys.version_info[1])]  
415        #python_libs=[sysconfig.get_config_var('LDLIBRARY')] # only on linux
416        if IS_WINDOWS:
417            python_libs=['python%s%s'%(sys.version_info[0], sys.version_info[1])]
418        else:
419            python_libs=['python'+sysconfig.get_python_version()]
420    
421    #if we want to use a python other than the one scons is running
422  else:  else:
423      python_libs=['python'+sysconfig.get_python_version()]      initstring='from __future__ import print_function;from distutils import sysconfig;'
424        if env['pythonlibname']!='':
425            python_libs=env['pythonlibname']
426        else:   # work it out by calling python    
427            if IS_WINDOWS:
428                cmd='print("python%s%s"%(sys.version_info[0], sys.version_info[1]))'
429            else:
430                cmd='print("python"+sysconfig.get_python_version())'
431            p=Popen([env['pythoncmd'], '-c', initstring+cmd], stdout=PIPE)
432            python_libs=p.stdout.readline()
433            if env['usepython3']:       # This is to convert unicode str into py2 string
434                python_libs=python_libs.encode() # If scons runs on py3 then this must be rethought
435            p.wait()
436            python_libs=python_libs.strip()
437    
438      
439        # Now we know whether we are using python3 or not
440        p=Popen([env['pythoncmd'], '-c',  initstring+'print(sysconfig.get_python_inc())'], stdout=PIPE)
441        python_inc_path=p.stdout.readline()
442        if env['usepython3']:
443             python_inc_path=python_inc_path.encode()
444        p.wait()  
445        python_inc_path=python_inc_path.strip()
446        if IS_WINDOWS:
447            cmd="os.path.join(sysconfig.get_config_var('prefix'), 'libs')"
448        elif env['PLATFORM']=='darwin':
449            cmd="sysconfig.get_config_var(\"LIBPL\")"
450        else:
451            cmd="sysconfig.get_config_var(\"LIBDIR\")"
452    
453        p=Popen([env['pythoncmd'], '-c', initstring+'print('+cmd+')'], stdout=PIPE)
454        python_lib_path=p.stdout.readline()
455        if env['usepython3']:
456            python_lib_path=python_lib_path.decode()
457        p.wait()
458        python_lib_path=python_lib_path.strip()
459    
460  if sysheaderopt == '':  if sysheaderopt == '':
461      conf.env.AppendUnique(CPPPATH = [python_inc_path])      conf.env.AppendUnique(CPPPATH = [python_inc_path])
# Line 415  if not conf.CheckFunc('Py_Exit'): Line 474  if not conf.CheckFunc('Py_Exit'):
474      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))
475      Exit(1)      Exit(1)
476    
477    ## reuse conf to check for numpy header (optional)
478    #if conf.CheckCXXHeader(['Python.h','numpy/ndarrayobject.h']):
479    #    conf.env.Append(CPPDEFINES = ['HAVE_NUMPY_H'])
480    #    conf.env['numpy_h']=True
481    #else:
482    #    conf.env['numpy_h']=False
483    
484    
485    # This is until we can work out how to make the checks in python 3
486    conf.env['numpy_h']=False
487    
488    
489  # Commit changes to environment  # Commit changes to environment
490  env = conf.Finish()  env = conf.Finish()
491    
# Line 437  env.PrependENVPath(LD_LIBRARY_PATH_KEY, Line 508  env.PrependENVPath(LD_LIBRARY_PATH_KEY,
508    
509  ######## numpy (required)  ######## numpy (required)
510    
511  try:  if env['pythoncmd']=='python':
512      from numpy import identity      try:
513  except ImportError:        from numpy import identity
514      print("Cannot import numpy, you need to set your PYTHONPATH and probably %s"%LD_LIBRARY_PATH_KEY)      except ImportError:
515      Exit(1)        print("Cannot import numpy, you need to set your PYTHONPATH and probably %s"%LD_LIBRARY_PATH_KEY)
516          Exit(1)
517    else:
518        p=subprocess.call([env['pythoncmd'],'-c','import numpy'])
519        if p!=0:
520          print("Cannot import numpy, you need to set your PYTHONPATH and probably %s"%LD_LIBRARY_PATH_KEY)
521          Exit(1)
522    
523  ######## CppUnit (required for tests)  ######## CppUnit (required for tests)
524    
# Line 559  if env['visit']: Line 636  if env['visit']:
636    
637  ######## MPI (optional)  ######## MPI (optional)
638    
639    if env['mpi']=='no':
640        env['mpi']='none'
641    
642  env['usempi'] = env['mpi']!='none'  env['usempi'] = env['mpi']!='none'
643  mpi_inc_path=''  mpi_inc_path=''
644  mpi_lib_path=''  mpi_lib_path=''
# Line 616  try: Line 696  try:
696  except OSError:  except OSError:
697      env['gmsh']=False      env['gmsh']=False
698    
699    ######## PDFLaTeX (for documentation)
700    if 'PDF' in dir(env) and '.tex' in env.PDF.builder.src_suffixes(env):
701        env['pdflatex']=True
702    else:
703        env['pdflatex']=False
704    
705  ######################## Summarize our environment ###########################  ######################## Summarize our environment ###########################
706    
707  # keep some of our install paths first in the list for the unit tests  # keep some of our install paths first in the list for the unit tests
# Line 654  else: Line 740  else:
740      print("          LAPACK:  DISABLED")      print("          LAPACK:  DISABLED")
741  d_list=[]  d_list=[]
742  e_list=[]  e_list=[]
743  for i in 'debug','openmp','netcdf','parmetis','papi','mkl','umfpack','boomeramg','silo','visit':  for i in 'debug','openmp','netcdf','parmetis','papi','mkl','umfpack','boomeramg','silo','visit','vsl_random':
744      if env[i]: e_list.append(i)      if env[i]: e_list.append(i)
745      else: d_list.append(i)      else: d_list.append(i)
746  for i in e_list:  for i in e_list:
# Line 671  elif env['gmsh']=='s': Line 757  elif env['gmsh']=='s':
757      print("            gmsh:  FOUND")      print("            gmsh:  FOUND")
758  else:  else:
759      print("            gmsh:  NOT FOUND")      print("            gmsh:  NOT FOUND")
760  print("      vsl_random:  %s"%env['vsl_random'])  if env['numpy_h']:
761        print("   numpy headers:  FOUND")
762    else:
763        print("   numpy headers:  NOT FOUND")
764    print("   vsl_random:  %s"%env['vsl_random'])
765            
766  if ((fatalwarning != '') and (env['werror'])):  if ((fatalwarning != '') and (env['werror'])):
767      print("  Treating warnings as errors")      print("  Treating warnings as errors")
# Line 706  env.SConscript(dirs = ['paso/src'], vari Line 796  env.SConscript(dirs = ['paso/src'], vari
796  env.SConscript(dirs = ['weipa/src'], variant_dir='$BUILD_DIR/$PLATFORM/weipa', duplicate=0)  env.SConscript(dirs = ['weipa/src'], variant_dir='$BUILD_DIR/$PLATFORM/weipa', duplicate=0)
797  env.SConscript(dirs = ['escript/src'], variant_dir='$BUILD_DIR/$PLATFORM/escript', duplicate=0)  env.SConscript(dirs = ['escript/src'], variant_dir='$BUILD_DIR/$PLATFORM/escript', duplicate=0)
798  env.SConscript(dirs = ['esysUtils/src'], variant_dir='$BUILD_DIR/$PLATFORM/esysUtils', duplicate=0)  env.SConscript(dirs = ['esysUtils/src'], variant_dir='$BUILD_DIR/$PLATFORM/esysUtils', duplicate=0)
799    env.SConscript(dirs = ['pasowrap/src'], variant_dir='$BUILD_DIR/$PLATFORM/pasowrap', duplicate=0)
800  env.SConscript(dirs = ['dudley/src'], variant_dir='$BUILD_DIR/$PLATFORM/dudley', duplicate=0)  env.SConscript(dirs = ['dudley/src'], variant_dir='$BUILD_DIR/$PLATFORM/dudley', duplicate=0)
801  env.SConscript(dirs = ['finley/src'], variant_dir='$BUILD_DIR/$PLATFORM/finley', duplicate=0)  env.SConscript(dirs = ['finley/src'], variant_dir='$BUILD_DIR/$PLATFORM/finley', duplicate=0)
802    env.SConscript(dirs = ['ripley/src'], variant_dir='$BUILD_DIR/$PLATFORM/ripley', duplicate=0)
803  env.SConscript(dirs = ['modellib/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/modellib', duplicate=0)  env.SConscript(dirs = ['modellib/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/modellib', duplicate=0)
804  env.SConscript(dirs = ['doc'], variant_dir='$BUILD_DIR/$PLATFORM/doc', duplicate=0)  env.SConscript(dirs = ['doc'], variant_dir='$BUILD_DIR/$PLATFORM/doc', duplicate=0)
805  env.SConscript(dirs = ['pyvisi/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/pyvisi', duplicate=0)  env.SConscript(dirs = ['pyvisi/py_src'], variant_dir='$BUILD_DIR/$PLATFORM/pyvisi', duplicate=0)
# Line 715  env.SConscript(dirs = ['pycad/py_src'], Line 807  env.SConscript(dirs = ['pycad/py_src'],
807  env.SConscript(dirs = ['pythonMPI/src'], variant_dir='$BUILD_DIR/$PLATFORM/pythonMPI', duplicate=0)  env.SConscript(dirs = ['pythonMPI/src'], variant_dir='$BUILD_DIR/$PLATFORM/pythonMPI', duplicate=0)
808  env.SConscript(dirs = ['paso/profiling'], variant_dir='$BUILD_DIR/$PLATFORM/paso/profiling', duplicate=0)  env.SConscript(dirs = ['paso/profiling'], variant_dir='$BUILD_DIR/$PLATFORM/paso/profiling', duplicate=0)
809    
810    
811  ######################## Populate the buildvars file #########################  ######################## Populate the buildvars file #########################
812    
813  # remove obsolete file  # remove obsolete file
# Line 734  except StopIteration: Line 827  except StopIteration:
827      pass      pass
828  boosthpp.close()  boosthpp.close()
829    
830    
831  buildvars=open(os.path.join(env['libinstall'], 'buildvars'), 'w')  buildvars=open(os.path.join(env['libinstall'], 'buildvars'), 'w')
832  buildvars.write("svn_revision="+str(global_revision)+"\n")  buildvars.write("svn_revision="+str(global_revision)+"\n")
833  buildvars.write("prefix="+prefix+"\n")  buildvars.write("prefix="+prefix+"\n")
834  buildvars.write("cc="+env['CC']+"\n")  buildvars.write("cc="+env['CC']+"\n")
835  buildvars.write("cxx="+env['CXX']+"\n")  buildvars.write("cxx="+env['CXX']+"\n")
836  buildvars.write("python="+sys.executable+"\n")  if env['pythoncmd']=='python':
837  buildvars.write("python_version="+str(sys.version_info[0])+"."+str(sys.version_info[1])+"."+str(sys.version_info[2])+"\n")      buildvars.write("python="+sys.executable+"\n")
838        buildvars.write("python_version="+str(sys.version_info[0])+"."+str(sys.version_info[1])+"."+str(sys.version_info[2])+"\n")
839    else:
840        buildvars.write("python="+env['pythoncmd']+"\n")
841        p=Popen([env['pythoncmd'], '-c', 'from __future__ import print_function;import sys;print(str(sys.version_info[0])+"."+str(sys.version_info[1])+"."+str(sys.version_info[2]))'], stdout=PIPE)
842        verstring=p.stdout.readline().strip()
843        p.wait()
844        buildvars.write("python_version="+verstring+"\n")
845  buildvars.write("boost_inc_path="+boost_inc_path+"\n")  buildvars.write("boost_inc_path="+boost_inc_path+"\n")
846  buildvars.write("boost_lib_path="+boost_lib_path+"\n")  buildvars.write("boost_lib_path="+boost_lib_path+"\n")
847  buildvars.write("boost_version="+boostversion+"\n")  buildvars.write("boost_version="+boostversion+"\n")
# Line 761  buildvars.close() Line 862  buildvars.close()
862    
863  ################### Targets to build and install libraries ###################  ################### Targets to build and install libraries ###################
864    
865  target_init = env.Command(env['pyinstall']+'/__init__.py', None, Touch('$TARGET'))  target_init = env.Command(os.path.join(env['pyinstall'],'__init__.py'), None, Touch('$TARGET'))
866  env.Alias('target_init', [target_init])  env.Alias('target_init', [target_init])
867    # delete buildvars upon cleanup
868    env.Clean('target_init', os.path.join(env['libinstall'], 'buildvars'))
869    
870  # The headers have to be installed prior to build in order to satisfy  # The headers have to be installed prior to build in order to satisfy
871  # #include <paso/Common.h>  # #include <paso/Common.h>
# Line 775  env.Alias('install_paso', ['build_paso', Line 878  env.Alias('install_paso', ['build_paso',
878  env.Alias('build_escript', ['install_escript_headers', 'build_escript_lib', 'build_escriptcpp_lib'])  env.Alias('build_escript', ['install_escript_headers', 'build_escript_lib', 'build_escriptcpp_lib'])
879  env.Alias('install_escript', ['build_escript', 'install_escript_lib', 'install_escriptcpp_lib', 'install_escript_py'])  env.Alias('install_escript', ['build_escript', 'install_escript_lib', 'install_escriptcpp_lib', 'install_escript_py'])
880    
881    env.Alias('build_pasowrap', ['install_pasowrap_headers', 'build_pasowrap_lib', 'build_pasowrapcpp_lib'])
882    env.Alias('install_pasowrap', ['build_pasowrap', 'install_pasowrap_lib', 'install_pasowrapcpp_lib', 'install_pasowrap_py'])
883    
884  env.Alias('build_dudley', ['install_dudley_headers', 'build_dudley_lib', 'build_dudleycpp_lib'])  env.Alias('build_dudley', ['install_dudley_headers', 'build_dudley_lib', 'build_dudleycpp_lib'])
885  env.Alias('install_dudley', ['build_dudley', 'install_dudley_lib', 'install_dudleycpp_lib', 'install_dudley_py'])  env.Alias('install_dudley', ['build_dudley', 'install_dudley_lib', 'install_dudleycpp_lib', 'install_dudley_py'])
886    
887  env.Alias('build_finley', ['install_finley_headers', 'build_finley_lib', 'build_finleycpp_lib'])  env.Alias('build_finley', ['install_finley_headers', 'build_finley_lib', 'build_finleycpp_lib'])
888  env.Alias('install_finley', ['build_finley', 'install_finley_lib', 'install_finleycpp_lib', 'install_finley_py'])  env.Alias('install_finley', ['build_finley', 'install_finley_lib', 'install_finleycpp_lib', 'install_finley_py'])
889    
890    env.Alias('build_ripley', ['install_ripley_headers', 'build_ripley_lib', 'build_ripleycpp_lib'])
891    env.Alias('install_ripley', ['build_ripley', 'install_ripley_lib', 'install_ripleycpp_lib', 'install_ripley_py'])
892    
893  env.Alias('build_weipa', ['install_weipa_headers', 'build_weipa_lib', 'build_weipacpp_lib'])  env.Alias('build_weipa', ['install_weipa_headers', 'build_weipa_lib', 'build_weipacpp_lib'])
894  env.Alias('install_weipa', ['build_weipa', 'install_weipa_lib', 'install_weipacpp_lib', 'install_weipa_py'])  env.Alias('install_weipa', ['build_weipa', 'install_weipa_lib', 'install_weipacpp_lib', 'install_weipa_py'])
895    
# Line 792  build_all_list = [] Line 901  build_all_list = []
901  build_all_list += ['build_esysUtils']  build_all_list += ['build_esysUtils']
902  build_all_list += ['build_paso']  build_all_list += ['build_paso']
903  build_all_list += ['build_escript']  build_all_list += ['build_escript']
904    build_all_list += ['build_pasowrap']
905  build_all_list += ['build_dudley']  build_all_list += ['build_dudley']
906  build_all_list += ['build_finley']  build_all_list += ['build_finley']
907    build_all_list += ['build_ripley']
908  build_all_list += ['build_weipa']  build_all_list += ['build_weipa']
909  if not IS_WINDOWS: build_all_list += ['build_escriptreader']  if not IS_WINDOWS: build_all_list += ['build_escriptreader']
910  if env['usempi']:   build_all_list += ['build_pythonMPI']  if env['usempi']:   build_all_list += ['build_pythonMPI']
# Line 805  install_all_list += ['target_init'] Line 916  install_all_list += ['target_init']
916  install_all_list += ['install_esysUtils']  install_all_list += ['install_esysUtils']
917  install_all_list += ['install_paso']  install_all_list += ['install_paso']
918  install_all_list += ['install_escript']  install_all_list += ['install_escript']
919    install_all_list += ['install_pasowrap']
920  install_all_list += ['install_dudley']  install_all_list += ['install_dudley']
921  install_all_list += ['install_finley']  install_all_list += ['install_finley']
922    install_all_list += ['install_ripley']
923  install_all_list += ['install_weipa']  install_all_list += ['install_weipa']
924  if not IS_WINDOWS: install_all_list += ['install_escriptreader']  if not IS_WINDOWS: install_all_list += ['install_escriptreader']
925  install_all_list += ['install_pyvisi_py']  #install_all_list += ['install_pyvisi_py']
926  install_all_list += ['install_modellib_py']  install_all_list += ['install_modellib_py']
927  install_all_list += ['install_pycad_py']  install_all_list += ['install_pycad_py']
928  if env['usempi']:   install_all_list += ['install_pythonMPI']  if env['usempi']:   install_all_list += ['install_pythonMPI']
# Line 838  env.Alias('release_prep', ['docs', 'inst Line 951  env.Alias('release_prep', ['docs', 'inst
951  if not IS_WINDOWS:  if not IS_WINDOWS:
952      try:      try:
953          utest=open('utest.sh','w')          utest=open('utest.sh','w')
954          utest.write(GroupTest.makeHeader(env['PLATFORM']))          utest.write(GroupTest.makeHeader(env['PLATFORM'], prefix))
955          for tests in TestGroups:          for tests in TestGroups:
956              utest.write(tests.makeString())              utest.write(tests.makeString())
957          utest.close()          utest.close()
958          Execute(Chmod('utest.sh', 0755))          Execute(Chmod('utest.sh', 0o755))
959          print("Generated utest.sh.")          print("Generated utest.sh.")
960      except IOError:      except IOError:
961          print("Error attempting to write unittests file.")          print("Error attempting to write unittests file.")
962          Exit(1)          Exit(1)
963    
964        # delete utest.sh upon cleanup
965        env.Clean('target_init', 'utest.sh')
966    
967      # Make sure that the escript wrapper is in place      # Make sure that the escript wrapper is in place
968      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):
969          print("Copying escript wrapper.")          print("Copying escript wrapper.")

Legend:
Removed from v.3597  
changed lines
  Added in v.3892

  ViewVC Help
Powered by ViewVC 1.1.26