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

Annotation of /trunk/escript/py_src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 352 - (hide annotations)
Wed Dec 14 02:21:37 2005 UTC (13 years, 9 months ago) by jgs
File size: 966 byte(s)
turns out Install() targets should also be made Default()
targets if you want them to actually reliably work!

1 jgs 268 pyinstall = None
2    
3     Import('*')
4    
5     import os
6     import sys
7    
8     extensions_dir = str(esysroot) + '/scons'
9     sys.path.append(extensions_dir)
10    
11     import scons_extensions
12    
13     escriptpy_env = Environment(ENV = os.environ)
14    
15     py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
16     escriptpy_env.Append(BUILDERS = {'PyCompile' : py_builder});
17    
18     python_src = ['__init__.py',
19     'escript.py',
20     'esysXML.py',
21     'linearPDEs.py',
22     'pdetools.py',
23 jgs 322 'modelframe.py',
24 jgs 268 'runmodel.py',
25     'symbols.py',
26     'test_symbols.py',
27     'timeseries.py',
28     'test_linearPDEs.py',
29     'test_util.py',
30     'util.py']
31    
32     pyc = escriptpy_env.PyCompile(python_src)
33    
34 jgs 352 Default(escriptpy_env.Install(pydir, pyc))
35     Default(escriptpy_env.Install(pydir2, pyc))
36 jgs 268 if pyinstall != None:
37 jgs 352 Default(escriptpy_env.Install(pyinstall, pyc))

  ViewVC Help
Powered by ViewVC 1.1.26