/[escript]/branches/RW_WIN32/bruce/py_src/Sconscript
ViewVC logotype

Annotation of /branches/RW_WIN32/bruce/py_src/Sconscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 220 - (hide annotations)
Thu Nov 24 09:11:38 2005 UTC (14 years, 8 months ago) by robwdcock
File size: 289 byte(s)
Python compile builder function added to scons. Bruce sconscript file shows usage
1 robwdcock 220 Import('*')
2    
3     local_env=env.Copy()
4    
5     src_dir = local_env.Dir('.').srcnode().abspath
6    
7     import os
8     filenames = os.listdir(src_dir)
9     python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
10    
11     pyc = local_env.PyCompile(python_src)
12     local_env.Install(esys_lib+'/'+lib_name, pyc)

  ViewVC Help
Powered by ViewVC 1.1.26