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

Diff of /branches/refine/SConstruct

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

revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3332 by jfenwick, Mon Nov 1 05:26:55 2010 UTC
# Line 125  vars.AddVariables( Line 125  vars.AddVariables(
125  # Intel's compiler uses regular expressions improperly and emits a warning  # Intel's compiler uses regular expressions improperly and emits a warning
126  # about failing to find the compilers. This warning can be safely ignored.  # about failing to find the compilers. This warning can be safely ignored.
127    
128  env = Environment(tools = ['default'], options = vars)  # PATH is needed so the compiler, linker and tools are found if they are not
129    # in default locations.
130    env = Environment(tools = ['default'], options = vars,
131                      ENV = {'PATH': os.environ['PATH']})
132  if env['tools_names'] != 'default':  if env['tools_names'] != 'default':
133      env = Environment(tools = ['default'] + env['tools_names'], options = vars)      env = Environment(tools = ['default'] + env['tools_names'], options = vars,
134                          ENV = {'PATH' : os.environ['PATH']})
135    
136  if options_file:  if options_file:
137      opts_valid=False      opts_valid=False
# Line 146  if options_file: Line 150  if options_file:
150  Help(vars.GenerateHelpText(env))  Help(vars.GenerateHelpText(env))
151    
152  # Check for superfluous options  # Check for superfluous options
153  for k in vars.UnknownVariables():  if len(vars.UnknownVariables())>0:
154      print("WARNING: Ignoring unknown option '%s'" % k)      for k in vars.UnknownVariables():
155            print("Unknown option '%s'" % k)
156        Exit(1)
157    
158  #################### Make sure install directories exist #####################  #################### Make sure install directories exist #####################
159    
# Line 277  try: Line 283  try:
283      if global_revision == '': global_revision='-2'      if global_revision == '': global_revision='-2'
284  except:  except:
285      global_revision = '-1'      global_revision = '-1'
286    env['svn_revision']=global_revision
287  env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])  env.Append(CPPDEFINES=['SVN_VERSION='+global_revision])
288    
289  if IS_WINDOWS:  if IS_WINDOWS:
# Line 294  if IS_WINDOWS: Line 301  if IS_WINDOWS:
301  else:  else:
302      LD_LIBRARY_PATH_KEY='LD_LIBRARY_PATH'      LD_LIBRARY_PATH_KEY='LD_LIBRARY_PATH'
303    
304  # the following env variables are exported for the unit tests, PATH is needed  # the following env variables are exported for the unit tests
 # so the compiler/linker is found if they are not in default locations.  
305    
306  for key in 'OMP_NUM_THREADS', 'ESCRIPT_NUM_PROCS', 'ESCRIPT_NUM_NODES':  for key in 'OMP_NUM_THREADS', 'ESCRIPT_NUM_PROCS', 'ESCRIPT_NUM_NODES':
307      try:      try:
# Line 572  if not env['verbose']: Line 578  if not env['verbose']:
578      env['ARCOMSTR'] = "Linking $TARGET"      env['ARCOMSTR'] = "Linking $TARGET"
579      env['LINKCOMSTR'] = "Linking $TARGET"      env['LINKCOMSTR'] = "Linking $TARGET"
580      env['SHLINKCOMSTR'] = "Linking $TARGET"      env['SHLINKCOMSTR'] = "Linking $TARGET"
581        env['PDFLATEXCOMSTR'] = "Building $TARGET from LaTeX input $SOURCES"
582        env['BIBTEXCOMSTR'] = "Generating bibliography $TARGET"
583        env['MAKEINDEXCOMSTR'] = "Generating index $TARGET"
584        env['PDFLATEXCOMSTR'] = "Building $TARGET from LaTeX input $SOURCES"
585      #Progress(['Checking -\r', 'Checking \\\r', 'Checking |\r', 'Checking /\r'], interval=17)      #Progress(['Checking -\r', 'Checking \\\r', 'Checking |\r', 'Checking /\r'], interval=17)
586    
587  print("")  print("")
# Line 756  env.Alias('build_PasoTests','build/$PLAT Line 766  env.Alias('build_PasoTests','build/$PLAT
766  ##################### Targets to build the documentation #####################  ##################### Targets to build the documentation #####################
767    
768  env.Alias('api_epydoc','install_all')  env.Alias('api_epydoc','install_all')
769  env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'guide_pdf', 'guide_html','install_pdf', 'cookbook_pdf'])  env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'guide_pdf', 'install_pdf', 'cookbook_pdf'])
770  env.Alias('release_prep', ['docs', 'install_all'])  env.Alias('release_prep', ['docs', 'install_all'])
771    
772  if not IS_WINDOWS:  if not IS_WINDOWS:
# Line 775  if not IS_WINDOWS: Line 785  if not IS_WINDOWS:
785      # Make sure that the escript wrapper is in place      # Make sure that the escript wrapper is in place
786      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):      if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')):
787          print("Copying escript wrapper.")          print("Copying escript wrapper.")
788          Execute(Copy(os.path.join(env['bininstall'],'escript'), 'bin/run-escript'))          Execute(Copy(os.path.join(env['bininstall'],'run-escript'), 'bin/run-escript'))
789    

Legend:
Removed from v.3259  
changed lines
  Added in v.3332

  ViewVC Help
Powered by ViewVC 1.1.26