Ignore:
Timestamp:
Apr 8, 2013, 9:28:42 PM (12 years ago)
Author:
steve
Message:

Getting rid of tests for importing C code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/shallow_water/boundaries.py

    r8810 r8820  
    2929import anuga.utilities.log as log
    3030     
    31 
    32 from anuga.utilities import compile
    33 if compile.can_use_C_extension('shallow_water_ext.c'):
    34     # Underlying C implementations can be accessed
    35     from shallow_water_ext import rotate
    36 else:
    37     msg = 'C implementations could not be accessed by %s.\n ' % __file__
    38     msg += 'Make sure compile_all.py has been run as described in '
    39     msg += 'the ANUGA installation guide.'
    40     raise Exception, msg
     31from shallow_water_ext import rotate
     32
     33#from anuga.utilities import compile
     34#if compile.can_use_C_extension('shallow_water_ext.c'):
     35#    # Underlying C implementations can be accessed
     36#    from shallow_water_ext import rotate
     37#else:
     38#    msg = 'C implementations could not be accessed by %s.\n ' % __file__
     39#    msg += 'Make sure compile_all.py has been run as described in '
     40#    msg += 'the ANUGA installation guide.'
     41#    raise Exception, msg
    4142
    4243
Note: See TracChangeset for help on using the changeset viewer.