/[escript]/trunk/pyvisi/py_src/SConscript
ViewVC logotype

Diff of /trunk/pyvisi/py_src/SConscript

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

revision 3258 by jfenwick, Tue Aug 3 03:12:16 2010 UTC revision 3259 by jfenwick, Mon Oct 11 01:48:14 2010 UTC
# Line 11  Line 11 
11  #  #
12  ########################################################  ########################################################
13    
   
 import os  
14  Import('*')  Import('*')
15    local_env = env.Clone()
16    
17  local_env = clone_env(env)  # get the source file names
18    sources = Glob('*.py')
 src_dir = local_env.Dir('.').srcnode().abspath  
   
 filenames = os.listdir(src_dir)  
 python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]  
   
 pyc = local_env.PyCompile(python_src)  
   
 local_env.Depends(pyc, dep_lib)  
19    
20  tmp1 = local_env.Install(local_env['pyinstall']+'/pyvisi', pyc)  # compile
21  env.Alias('target_install_pyvisi_py', [tmp1])  pyc = local_env.PyCompile(sources)
22    
23  CallSConscript(local_env,dirs = ['#/pyvisi/test/python'], variant_dir='#/build/$PLATFORM/pyvisi/test/python', duplicate=0)  # install
24    py_inst = local_env.Install(local_env['pyinstall']+'/pyvisi', pyc)
25    env.Alias('install_pyvisi_py', py_inst)
26    
27    # configure tests
28    local_env.SConscript(dirs = ['#/pyvisi/test/python'], variant_dir='#/build/$PLATFORM/pyvisi/test/python', duplicate=0)
29    

Legend:
Removed from v.3258  
changed lines
  Added in v.3259

  ViewVC Help
Powered by ViewVC 1.1.26