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