Ignore:
Timestamp:
Oct 26, 2006, 1:29:17 PM (17 years ago)
Author:
jack
Message:

Moved the SConstruct and build_options.py into the source/anuga directory.
It still builds like normal and will still install an anuga subdir under PREFIX.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/SConstruct

    r3872 r3875  
    107107env['SHLIBPREFIX'] = ""
    108108
    109 anuga_root = os.path.join('source', 'anuga')
     109anuga_root = '.'
    110110install_root = os.path.join(env['PREFIX'], 'anuga')
    111111
    112112# Build .pyc and .pyo files of every .py in here and below.
    113113files = []
    114 #dirs = filter(os.path.isdir, os.listdir('.'))
    115 #Only build the source/anuga directory for now
    116 dirs = [anuga_root]
     114dirs = filter(os.path.isdir, os.listdir('.'))
    117115while(dirs != []):
    118116    dirs += filter(os.path.isdir, map(lambda x : os.path.join(dirs[0], x), os.listdir(dirs[0])))
     
    122120    env.Pyc(x + 'c', x)
    123121    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')
    129124    if env['INSTALL_PYTHON_SOURCE']:
    130         env.Install(instdir, x)
     125        env.Install(os.path.join(install_root, os.path.dirname(x)), x)
    131126
    132127# Define the install target
Note: See TracChangeset for help on using the changeset viewer.