Changeset 4813
- Timestamp:
- Nov 12, 2007, 5:14:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/compile.py
r4812 r4813 15 15 16 16 import os, string, sys, types 17 18 separation_line = '---------------------------------------' 17 19 18 20 def compile(FNs=None, CC=None, LD = None, SFLAG = None, verbose = 1): … … 30 32 # Input check 31 33 # 32 assert not FNs is None, "No filename provided"34 assert not FNs is None, 'No filename provided' 33 35 34 36 if not type(FNs) == types.ListType: … … 155 157 # Verify that compiler can be executed 156 158 print 'Compiler: %s, version ' %compiler, 159 sys.stdout.flush() 157 160 s = '%s -dumpversion' %(compiler) 158 161 err = os.system(s) 159 162 print 163 160 164 if err != 0: 161 165 msg = 'Unable to execute compiler: %s. ' %compiler … … 412 416 pass 413 417 414 print '---------------------------------------'418 print separation_line 415 419 print 'Trying to compile c-extension %s in %s'\ 416 420 %(filename, os.getcwd())
Note: See TracChangeset
for help on using the changeset viewer.