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

Diff of /trunk/finley/py_src/SConscript

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

trunk/finley/py_src/SConscript revision 352 by jgs, Wed Dec 14 02:21:37 2005 UTC temp_trunk_copy/finley/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  
   
 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    python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
10    
11  py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)  pyc = local_env.PyCompile(python_src)
 finleypy_env.Append(BUILDERS = {'PyCompile' : py_builder});  
12    
13  python_src = ['__init__.py',  local_env.Depends(pyc, dep_lib)
14                'finley.py']  local_env.Install(pyinstall+'/finley', pyc)
15    
16  pyc = finleypy_env.PyCompile(python_src)  # get all the python files in the release tar file
17    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)
20    
 Default(finleypy_env.Install(pydir, pyc))  
 Default(finleypy_env.Install(pydir2, pyc))  
 if pyinstall != None:  
   Default(finleypy_env.Install(pyinstall, pyc))  

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

  ViewVC Help
Powered by ViewVC 1.1.26