1 |
# Scons configuration file for epydoc docs |
# Scons configuration file for epydoc docs |
2 |
|
|
3 |
import os |
import os |
|
import sys |
|
|
|
|
|
# |
|
|
# ensure correct versions of python and scons |
|
|
|
|
|
EnsurePythonVersion(2,3) |
|
|
EnsureSConsVersion(0,96) |
|
4 |
|
|
5 |
# |
# |
6 |
# set appropriate defaults for configuration variables |
# set appropriate defaults for configuration variables |
7 |
|
|
8 |
esysroot = Dir('#../..') |
esysroot=str(Dir('../..').abspath) |
9 |
|
execfile(str(File(esysroot+"/scons/esys_options.py"))) |
|
# |
|
|
# import configuration variables passed in from |
|
|
# calling SConscript (if any) |
|
|
|
|
|
Import('*') |
|
|
|
|
|
# |
|
|
# load configuration settings |
|
10 |
|
|
11 |
options_dir = str(esysroot) + '/scons' |
import scons_extensions |
|
sys.path.append(options_dir) |
|
12 |
|
|
13 |
# |
# |
14 |
# do the actual build |
# do the actual build |
17 |
|
|
18 |
epydoc_env = Environment(ENV = os.environ) |
epydoc_env = Environment(ENV = os.environ) |
19 |
|
|
|
import scons_extensions |
|
20 |
runEpydoc_builder = Builder(action = scons_extensions.build_epydoc, suffix = ".run") |
runEpydoc_builder = Builder(action = scons_extensions.build_epydoc, suffix = ".run") |
21 |
epydoc_env.Append(BUILDERS = {'RunEpydoc' : runEpydoc_builder}) |
epydoc_env.Append(BUILDERS = {'RunEpydoc' : runEpydoc_builder}) |
22 |
|
|