Changeset 4811


Ignore:
Timestamp:
Nov 12, 2007, 4:02:50 PM (16 years ago)
Author:
ole
Message:

Added error message in case compiler can't be found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/compile.py

    r4765 r4811  
    149149      sharedflag = 'G'
    150150
    151    
     151
     152  # Verify that compiler can be executed
     153  s = '%s --version' %compiler
     154  s = s + ' > /dev/null' # Suppress output
     155  err = os.system(s)
     156  if err != 0:
     157      msg = 'Unable to execute compiler: %s.' %compiler
     158      msg += 'Make sure it is available on the system path.'
     159      msg += 'One way is to try to check that %s runs on ' %compiler
     160      msg += 'the commandline.'
     161      raise Exception, msg
     162     
    152163       
    153164  # Find location of include files
     
    330341    return C
    331342
     343
    332344def set_python_dll_path():
    333345  """ Find which of the two usual hiding places the python dll is located.
Note: See TracChangeset for help on using the changeset viewer.