/[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

temp_trunk_copy/escript/py_src/SConscript revision 1384 by phornby, Fri Jan 11 02:29:38 2008 UTC trunk/escript/py_src/SConscript revision 1817 by ksteube, Tue Sep 30 04:03:40 2008 UTC
# Line 1  Line 1 
1    
2    ########################################################
3    #
4    # Copyright (c) 2003-2008 by University of Queensland
5    # Earth Systems Science Computational Center (ESSCC)
6    # http://www.uq.edu.au/esscc
7    #
8    # Primary Business: Queensland, Australia
9    # Licensed under the Open Software License version 3.0
10    # http://www.opensource.org/licenses/osl-3.0.php
11    #
12    ########################################################
13    
14    
15    import os
16  Import('*')  Import('*')
17    
18  local_env=env.Copy()  local_env = clone_env(env)
19    
20  src_dir = local_env.Dir('.').srcnode().abspath  src_dir = local_env.Dir('.').srcnode().abspath
21    
 import os  
22  filenames = os.listdir(src_dir)  filenames = os.listdir(src_dir)
23  python_src = [ x for x in filenames if os.path.splitext(x)[1] in ['.py'] ]  python_src = [ x for x in filenames if os.path.splitext(x)[1] in ['.py'] ]
24    
25  pyc = local_env.PyCompile(python_src)  pyc = local_env.PyCompile(python_src)
26    
27  local_env.Depends(pyc, dep_lib)  local_env.Depends(pyc, dep_lib)
 local_env.Install(pyinstall+'/escript', pyc)  
28    
29  # get all the python files in the release tar file  tmp2 = local_env.Install(local_env['bininstall'], 'runmodel.py')
30  release_py = [ env.File("SConscript"), ] + [ env.File(x) for x in python_src ]  
31  env.Zip(src_zipfile, release_py)  tmp1 = local_env.Install(local_env['pyinstall']+'/escript', pyc)
32  env.Tar(src_tarfile, release_py)  env.Alias('target_install_escript_py', [tmp1, tmp2])
33    

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

  ViewVC Help
Powered by ViewVC 1.1.26