source: trunk/anuga_core/source/anuga/compile_all.py @ 8968

Last change on this file since 8968 was 8845, checked in by steve, 12 years ago

Small change to plot_util to use both netcdf from scientific python and netcdf4

File size: 2.2 KB
Line 
1""" Script to compile all C extensions in ANUGA. """
2
3import os
4import subprocess
5import sys
6
7BUILDROOT = os.getcwd()
8
9#Attempt to compile all extensions
10
11
12
13os.chdir('utilities')
14subprocess.call([sys.executable, 'compile.py', 'quad_tree.c'])
15subprocess.call([sys.executable, 'compile.py', 'sparse_dok.c'])
16subprocess.call([sys.executable, 'compile.py', 'sparse_csr.c'])
17execfile('compile.py')
18
19os.chdir('..')
20os.chdir('advection')
21execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
22
23os.chdir('..')
24os.chdir('operators')
25execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
26
27os.chdir('..')
28os.chdir('file_conversion')
29execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
30
31os.chdir('..')
32os.chdir('geometry')
33execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
34
35os.chdir('..')
36os.chdir('structures')
37execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
38
39os.chdir('..')
40os.chdir('abstract_2d_finite_volumes')
41execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
42
43os.chdir('..')
44os.chdir('file')
45execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
46
47os.chdir('..')
48os.chdir('shallow_water')
49execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
50
51
52os.chdir('..')
53os.chdir('mesh_engine')
54execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
55
56os.chdir('..')
57os.chdir('fit_interpolate')
58subprocess.call([sys.executable, '..' + os.sep + 'utilities' + os.sep + 'compile.py', 'rand48.c'])
59subprocess.call([sys.executable, '..' + os.sep + 'utilities' + os.sep + 'compile.py', 'ptinpoly.c'])
60execfile('..' + os.sep + 'utilities' + os.sep + 'compile.py')
61
62
63
64#====================================================================
65#os.chdir('..')
66#os.chdir('utilities')
67#try:
68#    from anuga.utilities.system_tools  import store_version_info
69#    store_version_info(verbose=True)
70#    print
71#    print "---------------------------------"
72#    print 'Storing of version info succeeded'
73#    print "---------------------------------"
74#    print
75#except:
76#    print
77#    print "----------------------------------------------------------------"
78#    print 'Storage of version info failed (just means svn is not available)'
79#    print "----------------------------------------------------------------"
80#    print
81
82os.chdir(BUILDROOT)
Note: See TracBrowser for help on using the repository browser.