~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to finley/py_src/SConscript

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#
12
12
########################################################
13
13
 
14
 
 
15
 
import os
16
14
Import('*')
17
 
 
18
 
local_env = clone_env(env)
19
 
 
20
 
src_dir = local_env.Dir('.').srcnode().abspath
21
 
 
22
 
filenames = os.listdir(src_dir)
23
 
python_src = [x for x in filenames if os.path.splitext(x)[1] in ['.py']]
24
 
 
25
 
pyc = local_env.PyCompile(python_src)
26
 
 
27
 
local_env.Depends(pyc, dep_lib)
28
 
 
29
 
tmp1 = local_env.Install(local_env['pyinstall']+'/finley', pyc)
30
 
env.Alias('target_install_finley_py', [tmp1])
 
15
local_env = env.Clone()
 
16
 
 
17
# get the source file names
 
18
sources = Glob('*.py')
 
19
 
 
20
# compile
 
21
pyc = local_env.PyCompile(sources)
 
22
 
 
23
# install
 
24
py_inst = local_env.Install(local_env['pyinstall']+'/finley', pyc)
 
25
env.Alias('install_finley_py', py_inst)
31
26