Changeset 3875
- Timestamp:
- Oct 26, 2006, 1:29:17 PM (17 years ago)
- Location:
- anuga_core/source/anuga
- Files:
-
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/SConstruct
r3872 r3875 107 107 env['SHLIBPREFIX'] = "" 108 108 109 anuga_root = os.path.join('source', 'anuga')109 anuga_root = '.' 110 110 install_root = os.path.join(env['PREFIX'], 'anuga') 111 111 112 112 # Build .pyc and .pyo files of every .py in here and below. 113 113 files = [] 114 #dirs = filter(os.path.isdir, os.listdir('.')) 115 #Only build the source/anuga directory for now 116 dirs = [anuga_root] 114 dirs = filter(os.path.isdir, os.listdir('.')) 117 115 while(dirs != []): 118 116 dirs += filter(os.path.isdir, map(lambda x : os.path.join(dirs[0], x), os.listdir(dirs[0]))) … … 122 120 env.Pyc(x + 'c', x) 123 121 env.Pyo(x + 'o', x) 124 # We have to cut the first character off the result of os.path.dirname(x).replace('anuga_core, '') 125 # or else we will start taking paths relative to the root directory. 126 instdir = os.path.join(env['PREFIX'], os.path.dirname(x).replace('source', '')[1:]) 127 env.Install(instdir, x + 'c') 128 env.Install(instdir, x + 'o') 122 env.Install(os.path.join(install_root, os.path.dirname(x)), x + 'c') 123 env.Install(os.path.join(install_root, os.path.dirname(x)), x + 'o') 129 124 if env['INSTALL_PYTHON_SOURCE']: 130 env.Install( instdir, x)125 env.Install(os.path.join(install_root, os.path.dirname(x)), x) 131 126 132 127 # Define the install target -
anuga_core/source/anuga/build_options.py
r3872 r3875 6 6 # Flags to pass to MSVC Compiler 7 7 MSVCFLAGS = '/Wall' 8 9 # Location of the metis directory relative to the pymetis directory10 METIS_DIR = 'metis-4.0'11 8 12 9 # Optimisation level used when building the .pyo files
Note: See TracChangeset
for help on using the changeset viewer.