source:
anuga_core/source/anuga/pmesh/compile.py
@
7195
Last change on this file since 7195 was 4761, checked in by , 17 years ago | |
---|---|
File size: 391 bytes |
Rev | Line | |
---|---|---|
[829] | 1 | """compile.py - compile Python C-extension |
2 | ||
3 | Commandline usage: | |
4 | python compile.py <filename> | |
[4761] | 5 | |
[829] | 6 | """ |
[4761] | 7 | import os |
[829] | 8 | |
[4761] | 9 | buildroot = os.getcwd() |
10 | os.chdir('..') | |
[829] | 11 | |
12 | ||
[4761] | 13 | print 'Changing to', os.getcwd() |
[829] | 14 | |
[4761] | 15 | #entries = listdir('.') |
[829] | 16 | |
[4761] | 17 | #Attempt to compile mesh_engine extensions |
[829] | 18 | |
19 | ||
[4761] | 20 | os.chdir('mesh_engine') |
21 | execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py') | |
[829] | 22 | |
[4761] | 23 | os.chdir(buildroot) |
[829] | 24 |
Note: See TracBrowser
for help on using the repository browser.