Changeset 3546
- Timestamp:
- Sep 7, 2006, 3:21:16 PM (18 years ago)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
SConstruct
r3545 r3546 52 52 else: 53 53 opts.Add(PathOption('PREFIX', 54 'Location to install compiled sources' .54 'Location to install compiled sources', 55 55 os.path.join(sys.exec_prefix, 'lib', 'python' + sys.version[:3], 'site-packages'))) 56 56 … … 106 106 files = [] 107 107 #dirs = filter(os.path.isdir, os.listdir('.')) 108 #Only build the anuga_core directory for now109 dirs = [ 'anuga_core']108 #Only build the anuga_core/source/anuga directory for now 109 dirs = [os.path.join('anuga_core', 'source', 'anuga')] 110 110 while(dirs != []): 111 111 dirs += filter(os.path.isdir, map(lambda x : os.path.join(dirs[0], x), os.listdir(dirs[0]))) … … 115 115 env.Pyc(x + 'c', x) 116 116 env.Pyo(x + 'o', x) 117 instdir = os.path.join(env['PREFIX'], os.path.split(x)[0]) 117 # We have to cut the first character off the result of os.path.dirname(x).replace(os.path.join('anuga_core, 'source'), '') 118 # or else we will start taking paths relative to the root directory. 119 instdir = os.path.join(env['PREFIX'], os.path.dirname(x).replace(os.path.join('anuga_core', 'source'), '')[1:]) 118 120 env.Install(instdir, x + 'c') 119 121 env.Install(instdir, x + 'o') -
anuga_core/source/anuga/mesh_engine/SConscript
r3545 r3546 1 import os 1 2 Import('env') 2 3 env2 = env.Copy() 3 4 env2.Append(CPPDEFINES=[('TRILIBRARY', 1), ('NO_TIMER', 1)]) 4 5 5 env2.SharedLibrary('triang', ['triangle.c', 'triang.c']) 6 env2.SharedLibrary('triangle', ['triangle.c']) 6 instdir = os.path.join(env['PREFIX'], 'anuga', 'mesh_engine') 7 env.Install(instdir, env2.SharedLibrary('triang', ['triangle.c', 'triang.c'])) 8 env.Install(instdir, env2.SharedLibrary('triangle', ['triangle.c'])) -
anuga_core/source/anuga/pyvolution/SConscript
r3523 r3546 1 import os 1 2 Import('env') 2 3 env2 = env.Copy() 3 4 env2.Append(CPPPATH=['#anuga_core/source/anuga/utilities']) 4 5 5 env2.SharedLibrary('quantity_ext', ['quantity_ext.c']) 6 env2.SharedLibrary('shallow_water_ext', ['shallow_water_ext.c']) 7 env2.SharedLibrary('shallow_water_kinetic', ['shallow_water_kinetic_ext.c']) 6 instdir = os.path.join(env['PREFIX'], 'anuga', 'pyvolution') 7 env.Install(instdir, env2.SharedLibrary('quantity_ext', ['quantity_ext.c'])) 8 env.Install(instdir, env2.SharedLibrary('shallow_water_ext', ['shallow_water_ext.c'])) 9 env.Install(instdir, env2.SharedLibrary('shallow_water_kinetic', ['shallow_water_kinetic_ext.c'])) -
anuga_core/source/anuga/utilities/SConscript
r3282 r3546 1 import os 1 2 Import('env') 2 env.SharedLibrary('polygon_ext', ['polygon_ext.c']) 3 env.SharedLibrary('util_ext', ['util_ext.c']) 4 env.SharedLibrary('sparse_ext', ['sparse_ext.c']) 3 instdir = os.path.join(env['PREFIX'], 'anuga', 'utilities') 4 env.Install(instdir, env.SharedLibrary('polygon_ext', ['polygon_ext.c'])) 5 env.Install(instdir, env.SharedLibrary('util_ext', ['util_ext.c'])) 6 env.Install(instdir, env.SharedLibrary('sparse_ext', ['sparse_ext.c'])) -
build_options.py
r3545 r3546 16 16 # Uncommenting this and leaving it as the empty string will cause the 17 17 # build to fail. 18 PREFIX = 'c:\\pyanuga_temp'18 #PREFIX = '' 19 19 20 20 # Install .py files as well as the binaries? Yes/No option
Note: See TracChangeset
for help on using the changeset viewer.