/[ascend]/trunk/pygtk/SConscript
ViewVC logotype

Diff of /trunk/pygtk/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1435 by jpye, Fri May 18 09:20:26 2007 UTC revision 1436 by jpye, Mon May 21 09:39:28 2007 UTC
# Line 133  def pyc_build(target, source, env): Line 133  def pyc_build(target, source, env):
133  env.Append(BUILDERS = {'PYC' : Builder(action = pyc_build,suffix='.pyc',src_suffix='.py')})  env.Append(BUILDERS = {'PYC' : Builder(action = pyc_build,suffix='.pyc',src_suffix='.py')})
134    
135  if env.get('CAN_INSTALL'):  if env.get('CAN_INSTALL'):
136      env.InstallProgram(env.subst("$INSTALL_ROOT$INSTALL_BIN"),ascendcmd)      env.InstallProgram(Dir(env.subst("$INSTALL_ROOT$INSTALL_BIN")),ascendcmd)
137    
138      import glob      import glob
139      pythonfiles = glob.glob("*.py")      pythonfiles = glob.glob("*.py")
# Line 143  if env.get('CAN_INSTALL'): Line 143  if env.get('CAN_INSTALL'):
143          pythonpycs.append( env.PYC(f) )          pythonpycs.append( env.PYC(f) )
144    
145      for f in pythonfiles + pythonpycs:      for f in pythonfiles + pythonpycs:
146          env.InstallShared(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA/"),f)          env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA")),f)
147    
148      env.InstallShared(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA/"),"config.py")      env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA")),"config.py")
149    
150      gladefiles = glob.glob("glade/*")      gladefiles = glob.glob("glade/*")
151      env.InstallShared(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA/glade/"),gladefiles)      env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA/glade")),gladefiles)
152    
153      env.InstallShared(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA/"),swiglib)      env.InstallShared(Dir(env.subst("$INSTALL_ROOT$INSTALL_ASCDATA")),swiglib)
154    
155  if platform.system()=="Windows":  if platform.system()=="Windows":
156      env.Append(NSISDEFINES={'OUTFILE':"#dist/"+env['WIN_INSTALLER_NAME']})      env.Append(NSISDEFINES={'OUTFILE':"#dist/"+env['WIN_INSTALLER_NAME']})

Legend:
Removed from v.1435  
changed lines
  Added in v.1436

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22