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

Diff of /trunk/escript/py_src/SConscript

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

trunk/escript/py_src/SConscript revision 322 by jgs, Tue Dec 6 04:53:30 2005 UTC temp_trunk_copy/escript/py_src/SConscript revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC
# Line 1  Line 1 
 pyinstall = None  
   
1  Import('*')  Import('*')
2    
3  import os  local_env=env.Copy()
 import sys  
4    
5  extensions_dir = str(esysroot) + '/scons'  src_dir = local_env.Dir('.').srcnode().abspath
 sys.path.append(extensions_dir)  
6    
7  import scons_extensions  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  escriptpy_env = Environment(ENV = os.environ)  pyc = local_env.PyCompile(python_src)
12    
13  py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  local_env.Depends(pyc, dep_lib)
14  escriptpy_env.Append(BUILDERS = {'PyCompile' : py_builder});  local_env.Install(pyinstall+'/escript', pyc)
   
 python_src = ['__init__.py',  
               'escript.py',  
               'esysXML.py',  
               'linearPDEs.py',  
               'pdetools.py',  
               'modelframe.py',  
               'runmodel.py',  
               'symbols.py',  
               'test_symbols.py',  
               'timeseries.py',  
               'test_linearPDEs.py',  
               'test_util.py',  
               'util.py']  
   
 pyc = escriptpy_env.PyCompile(python_src)  
 escriptpy_env.Install(pydir, pyc)  
 escriptpy_env.Install(pydir2, pyc)  
15    
16  if pyinstall != None:  # get all the python files in the release tar file
17    escriptpy_env.Install(pyinstall, pyc)  release_py = [ env.File("SConscript"), ] + [ env.File(x) for x in python_src ]
18    env.Zip(src_zipfile, release_py)
19    env.Tar(src_tarfile, release_py)

Legend:
Removed from v.322  
changed lines
  Added in v.1384

  ViewVC Help
Powered by ViewVC 1.1.26