source: anuga_core/compile_all.py @ 7297

Last change on this file since 7297 was 6718, checked in by rwilson, 15 years ago

Replace 'ANY' key with 'RETURN' - raw_input() waits for ENTER.

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