Last change
on this file since 7340 was
6718,
checked in by rwilson, 16 years ago
|
Replace 'ANY' key with 'RETURN' - raw_input() waits for ENTER.
|
File size:
1.0 KB
|
Line | |
---|
1 | import os |
---|
2 | import time |
---|
3 | |
---|
4 | buildroot = os.getcwd() |
---|
5 | |
---|
6 | os.chdir('source') |
---|
7 | |
---|
8 | os.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 | |
---|
18 | print 'Changing to', os.getcwd() |
---|
19 | |
---|
20 | #entries = listdir('.') |
---|
21 | |
---|
22 | t0 = time.time() |
---|
23 | |
---|
24 | #Attempt to compile all extensions |
---|
25 | |
---|
26 | os.chdir('utilities') |
---|
27 | execfile('compile.py') |
---|
28 | |
---|
29 | os.chdir('..') |
---|
30 | os.chdir('abstract_2d_finite_volumes') |
---|
31 | execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') |
---|
32 | |
---|
33 | os.chdir('..') |
---|
34 | os.chdir('advection') |
---|
35 | execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') |
---|
36 | |
---|
37 | |
---|
38 | os.chdir('..') |
---|
39 | os.chdir('shallow_water') |
---|
40 | execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') |
---|
41 | |
---|
42 | os.chdir('..') |
---|
43 | os.chdir('mesh_engine') |
---|
44 | execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') |
---|
45 | |
---|
46 | os.chdir(buildroot) |
---|
47 | #execfile('test_all.py') |
---|
48 | |
---|
49 | print 'That took %.3fs' %(time.time() - t0) |
---|
50 | |
---|
51 | if sys.platform == 'win32': |
---|
52 | raw_input('Press the RETURN key') |
---|
Note: See
TracBrowser
for help on using the repository browser.