Changeset 1125 for trunk


Ignore:
Timestamp:
08/10/06 13:39:05 (18 years ago)
Author:
mar637
Message:

add tree install

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r1123 r1125  
    1 import os, sys, glob
     1import os
     2import sys
     3import glob
    24import distutils.sysconfig
    35import platform
     6# scons plug-ins
    47sys.path.append("scons")
    58from casa import checkCasa
     9from installtree import InstallTree
    610
    7 moduledir = '/tmp'#distutils.sysconfig.get_python_lib()
     11moduledir = distutils.sysconfig.get_python_lib()
    812
    913opts = Options("userconfig.py")
     
    6266env.Install(env["dist_dir"], so )
    6367pys = env.SConscript("python/SConscript")
    64 env.Install(moduledir, Dir(env["dist_dir"]))
    65 env.Alias('install', moduledir)
     68asapmod = InstallTree(env,
     69                      dest_dir = os.path.join(moduledir, "asap"),
     70                      src_dir  = env["dist_dir"],
     71                      includes = ['*.py', '*.so'],
     72                      excludes = [])
     73env.Alias('install', asapmod)
    6674
    6775#if env['mode'] == "release":
Note: See TracChangeset for help on using the changeset viewer.