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

Contents of /trunk/bruce/py_src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

1 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 brucepy_env = Environment(ENV = os.environ)
14
15 py_builder = Builder(action = scons_extensions.build_py, suffix = '.pyc', src_suffix = '.py', single_source=True)
16 brucepy_env.Append(BUILDERS = {'PyCompile' : py_builder});
17
18 python_src = ['__init__.py',
19 'bruce.py']
20
21 pyc = brucepy_env.PyCompile(python_src)
22
23 Default(brucepy_env.Install(pydir, pyc))
24 Default(brucepy_env.Install(pydir2, pyc))
25 if pyinstall != None:
26 Default(brucepy_env.Install(pyinstall, pyc))

  ViewVC Help
Powered by ViewVC 1.1.26