/[escript]/branches/RW_WIN32/finley/py_src/Sconscript
ViewVC logotype

Contents of /branches/RW_WIN32/finley/py_src/Sconscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 229 - (show annotations)
Fri Nov 25 06:17:13 2005 UTC (14 years, 11 months ago) by robwdcock
File size: 291 byte(s)
+ Added Options capability
+ All py files are now compiled and installed into lib directory hierarchy
+ scons now reads custom options from custom.py. Examples are in the scons_custom_templates directory, just copy to top level build dir and rename to custom.py
+ scons_ext.py now has some helper functions for building pyc from python and running unit tests (but only when some dependency changes).


1 Import('*')
2
3 local_env=env.Copy()
4
5 src_dir = local_env.Dir('.').srcnode().abspath
6
7 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 pyc = local_env.PyCompile(python_src)
12 local_env.Install(esys_lib+'/esys/finley', pyc)

  ViewVC Help
Powered by ViewVC 1.1.26