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

Diff of /trunk/modellib/py_src/SConscript

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

revision 681 by jgs, Wed Dec 14 02:21:37 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  modellibpy_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']]
 modellibpy_env.Append(BUILDERS = {'PyCompile' : py_builder});  
   
 python_src = ['__init__.py',  
               'darcy.py',  
               'flow.py',  
               'geometry.py',  
               'input.py',  
               'materials.py',  
               'probe.py',  
               'temperature.py',  
               'tsunami.py',  
               'visualization.py']  
10    
11  pyc = modellibpy_env.PyCompile(python_src)  pyc = local_env.PyCompile(python_src)
12    
13  Default(modellibpy_env.Install(pydir, pyc))  local_env.Depends(pyc, dep_lib)
14  Default(modellibpy_env.Install(pydir2, pyc))  local_env.Install(pyinstall+'/modellib', pyc)
 if pyinstall != None:  
   Default(modellibpy_env.Install(pyinstall, pyc))  

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

  ViewVC Help
Powered by ViewVC 1.1.26