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

Diff of /trunk/pygtk/SConscript

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

revision 1407 by jpye, Fri Apr 6 06:56:04 2007 UTC revision 1408 by jpye, Mon Apr 23 02:32:34 2007 UTC
# Line 124  idatest = swig_env.Program('idatest',['i Line 124  idatest = swig_env.Program('idatest',['i
124  #---------------------------------------------  #---------------------------------------------
125  # INSTALLATION  # INSTALLATION
126    
127    # python compile bytecode
128    
129    import py_compile
130    def pyc_build(target, source, env):
131        py_compile.compile(str(source[0]),str(target[0]),"",True)
132        return None
133    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['INSTALL_ROOT']+env['INSTALL_BIN'],ascendcmd)      env.InstallProgram(env['INSTALL_ROOT']+env['INSTALL_BIN'],ascendcmd)
137    
138      import glob      import glob
139      pythonfiles = glob.glob("*.py")      pythonfiles = glob.glob("*.py")
140    
141      env.InstallShared(env['INSTALL_ROOT']+env['INSTALL_ASCDATA']+"/",pythonfiles)      pythonpycs = []
142        for f in pythonfiles:
143            pythonpycs.append( env.PYC(f) )
144        print pythonpycs
145    
146        for f in pythonfiles + pythonpycs:
147            env.InstallShared(env['INSTALL_ROOT']+env['INSTALL_ASCDATA']+"/",f)
148    
149      env.InstallShared(env['INSTALL_ROOT']+env['INSTALL_ASCDATA']+"/","config.py")      env.InstallShared(env['INSTALL_ROOT']+env['INSTALL_ASCDATA']+"/","config.py")
150    
151      gladefiles = glob.glob("glade/*")      gladefiles = glob.glob("glade/*")

Legend:
Removed from v.1407  
changed lines
  Added in v.1408

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