source: anuga_core/compile_all.py @ 6417

Last change on this file since 6417 was 6417, checked in by ole, 15 years ago

Added raw_input to pause after compile_all, test_all and validate_all on Windows

File size: 1.0 KB
RevLine 
[2778]1import os
[5969]2import time
[2778]3
4buildroot = os.getcwd()
5
[5898]6os.chdir('source')
[2778]7
[3514]8os.chdir('anuga')
9
[2778]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
[5969]22t0 = time.time()
[2778]23
24#Attempt to compile all extensions
25
26os.chdir('utilities')
27execfile('compile.py')
28
29os.chdir('..')
[3560]30os.chdir('abstract_2d_finite_volumes')
[2778]31execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
32
33os.chdir('..')
[4978]34os.chdir('advection')
35execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
36
37
38os.chdir('..')
[3563]39os.chdir('shallow_water')
40execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
41
42os.chdir('..')
[3027]43os.chdir('mesh_engine')
[4447]44execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
[2778]45
46os.chdir(buildroot)   
47#execfile('test_all.py')
48   
[5969]49print 'That took %.3fs' %(time.time() - t0)
[6417]50
51if sys.platform == 'win32':
52    raw_input('Press any key')
Note: See TracBrowser for help on using the repository browser.