/[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 610 by gross, Tue Mar 21 23:08:28 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)  
4    
5  import scons_extensions  src_dir = local_env.Dir('.').srcnode().abspath
6    
7  pyvisipy_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']]
 pyvisipy_env.Append(BUILDERS = {'PyCompile' : py_builder});  
10    
11  python_src = ['__init__.py',  pyc = local_env.PyCompile(python_src)
12                'axes.py',  env.SConscript(dirs = ['renderers','utils'],duplicate=0)
               'camera.py',  
               'common.py',  
               'image.py',  
               'item.py',  
               'plane.py',  
               'plot.py',  
               'renderer.py',  
               'scene.py',  
               'text.py']  
13    
14  pyc = pyvisipy_env.PyCompile(python_src)  local_env.Depends(pyc, dep_lib)
15  Default(pyvisipy_env.Install(pydir2, pyc))  local_env.Install(pyinstall+'/pyvisi', pyc)
 if pyinstall != None:  
   Default(pyvisipy_env.Install(pyinstall, pyc))  

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

  ViewVC Help
Powered by ViewVC 1.1.26