source: anuga_core/compile_all.py @ 5297

Last change on this file since 5297 was 4978, checked in by steve, 16 years ago

Added a C extension for the advection directory (gave up on using f2py!)

File size: 900 bytes
Line 
1import os
2
3buildroot = os.getcwd()
4
5os.chdir('source')
6
7os.chdir('anuga')
8
9#Complete horrible hack to decide which branch to take (Ole)
10#try:
11#    os.stat('inundation-numpy-branch')
12#except:
13#    os.chdir('inundation')
14#else:
15#    os.chdir('inundation-numpy-branch')   
16
17print 'Changing to', os.getcwd()       
18
19#entries = listdir('.')
20
21
22#Attempt to compile all extensions
23
24os.chdir('utilities')
25execfile('compile.py')
26
27os.chdir('..')
28os.chdir('abstract_2d_finite_volumes')
29execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
30
31os.chdir('..')
32os.chdir('advection')
33execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
34
35
36os.chdir('..')
37os.chdir('shallow_water')
38execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
39
40os.chdir('..')
41os.chdir('mesh_engine')
42execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
43
44os.chdir(buildroot)   
45#execfile('test_all.py')
46   
Note: See TracBrowser for help on using the repository browser.