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

Diff of /trunk/dudley/py_src/SConscript

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

revision 681 by gross, Mon Dec 19 06:11:32 2005 UTC revision 682 by robwdcock, Mon Mar 27 02:43:09 2006 UTC
# Line 1  Line 1 
 pyinstall = None  
   
1  Import('*')  Import('*')
2    
3  import os  local_env=env.Copy()
 import sys  
   
 extensions_dir = str(esysroot) + '/scons'  
 sys.path.append(extensions_dir)  
4    
5  import scons_extensions  src_dir = local_env.Dir('.').srcnode().abspath
6    
7  finleypy_env = Environment(ENV = os.environ)  import os
8    filenames = os.listdir(src_dir)
9  py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
 finleypy_env.Append(BUILDERS = {'PyCompile' : py_builder});  
   
 python_src = ['__init__.py',  
               'finley.py',  
               'finleybench.py']  
10    
11  pyc = finleypy_env.PyCompile(python_src)  pyc = local_env.PyCompile(python_src)
12    
13  Default(finleypy_env.Install(pydir, pyc))  local_env.Depends(pyc, dep_lib)
14  Default(finleypy_env.Install(pydir2, pyc))  local_env.Install(pyinstall+'/finley', pyc)
 if pyinstall != None:  
   Default(finleypy_env.Install(pyinstall, pyc))  

Legend:
Removed from v.681  
changed lines
  Added in v.682

  ViewVC Help
Powered by ViewVC 1.1.26