Changeset 3546 for SConstruct
- Timestamp:
- Sep 7, 2006, 3:21:16 PM (18 years ago)
- File:
-
- 1 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')
Note: See TracChangeset
for help on using the changeset viewer.