Changeset 1177 for trunk/SConstruct
- Timestamp:
- 08/23/06 16:08:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1155 r1177 6 6 #from installtree import InstallTree 7 7 8 version = "2.1b" 8 9 moduledir = distutils.sysconfig.get_python_lib() 9 10 if platform.architecture()[0] == '64bit': … … 24 25 EnumOption("mode", "The type of build.", "debug", 25 26 ["release","debug"], ignorecase=1), 26 BoolOption("staticlink",27 "Should extrenal libs be linked in statically",28 False)27 ("makedist", 28 "Make a binary distribution giving a suffix, e.g. sarge or fc5", 29 "") 29 30 ) 30 31 31 32 env = Environment( toolpath = ['./scons'], 32 tools = ["default", " disttar", "installtree", "casa",33 tools = ["default", "installtree", "casa", 33 34 "utils"], 34 35 ENV = { 'PATH' : os.environ[ 'PATH' ], … … 93 94 94 95 so = env.SConscript("src/SConscript", build_dir="build", duplicate=0) 95 env.Install(env["stage_dir"], so ) 96 97 pys = env.SConscript("python/SConscript") 96 stagebuild = env.Install(env["stage_dir"], so ) 97 stagedoc = env.Install("stage", ["doc/README", "doc/CHANGELOG"] ) 98 stagepys = env.SConscript("python/SConscript") 99 stage0 = env.Install("stage", "bin/install") 100 stage1 = env.Install("stage/bin", "bin/asap") 101 env.Alias('stage', [stagebuild,stagedoc,stagepys, stage0, stage1]) 102 # install locally 98 103 asapmod = env.InstallTree(dest_dir = os.path.join(env["moduledir"], "asap"), 99 104 src_dir = "stage/asap", … … 102 107 asapbin = env.Install(os.path.join(env["prefix"], "bin"), "bin/asap") 103 108 env.Alias('install', [asapmod, asapbin]) 109 # make binary distribution 110 if len(env["makedist"]): 111 md =env.CreateDist("dist/asap-%s-%s" % (version, env["makedist"]), 112 ["install", "README", "CHANGELOG", "asap"], 113 "stage")
Note:
See TracChangeset
for help on using the changeset viewer.