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

Diff of /trunk/pyvisi/py_src/utils/SConscript

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

revision 693 by gross, Thu Mar 23 10:55:31 2006 UTC revision 694 by gross, Thu Mar 30 11:35:55 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)  
   
 import scons_extensions  
4    
5  pyvisipy_env = Environment(ENV = os.environ)  src_dir = local_env.Dir('.').srcnode().abspath
6    
7  py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  import os
8  pyvisipy_env.Append(BUILDERS = {'PyCompile' : py_builder});  filenames = os.listdir(src_dir)
9    python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
10    
11  python_src = ['__init__.py',  pyc = local_env.PyCompile(python_src)
               'utils.py']  
12    
13  pyc = pyvisipy_env.PyCompile(python_src)  local_env.Depends(pyc, dep_lib)
14  Default(pyvisipy_env.Install(Dir(str(pydir2)+"/utils"), pyc))  local_env.Install(pyinstall+'/pyvisi/utils', pyc)
 if pyinstall != None:  
   Default(pyvisipy_env.Install(pyinstall, pyc))  

Legend:
Removed from v.693  
changed lines
  Added in v.694

  ViewVC Help
Powered by ViewVC 1.1.26