Changeset 1177 for trunk/SConstruct


Ignore:
Timestamp:
08/23/06 16:08:13 (18 years ago)
Author:
mar637
Message:

reworked creating binary dist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r1155 r1177  
    66#from installtree import InstallTree
    77
     8version = "2.1b"
    89moduledir = distutils.sysconfig.get_python_lib()
    910if  platform.architecture()[0] == '64bit':
     
    2425                EnumOption("mode", "The type of build.", "debug",
    2526                           ["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                 "")
    2930                )
    3031
    3132env = Environment( toolpath = ['./scons'],
    32                    tools = ["default", "disttar", "installtree", "casa",
     33                   tools = ["default", "installtree", "casa",
    3334                            "utils"],
    3435                   ENV = { 'PATH' : os.environ[ 'PATH' ],
     
    9394
    9495so = env.SConscript("src/SConscript", build_dir="build", duplicate=0)
    95 env.Install(env["stage_dir"], so )
    96 
    97 pys = env.SConscript("python/SConscript")
     96stagebuild = env.Install(env["stage_dir"], so )
     97stagedoc = env.Install("stage", ["doc/README", "doc/CHANGELOG"] )
     98stagepys = env.SConscript("python/SConscript")
     99stage0 = env.Install("stage", "bin/install")
     100stage1 = env.Install("stage/bin", "bin/asap")
     101env.Alias('stage', [stagebuild,stagedoc,stagepys, stage0, stage1])
     102# install locally
    98103asapmod = env.InstallTree(dest_dir = os.path.join(env["moduledir"], "asap"),
    99104                          src_dir  = "stage/asap",
     
    102107asapbin = env.Install(os.path.join(env["prefix"], "bin"), "bin/asap")
    103108env.Alias('install', [asapmod, asapbin])
     109# make binary distribution
     110if 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.