1 |
|
2 |
######################################################## |
3 |
# |
4 |
# Copyright (c) 2003-2010 by University of Queensland |
5 |
# Earth Systems Science Computational Center (ESSCC) |
6 |
# http://www.uq.edu.au/esscc |
7 |
# |
8 |
# Primary Business: Queensland, Australia |
9 |
# Licensed under the Open Software License version 3.0 |
10 |
# http://www.opensource.org/licenses/osl-3.0.php |
11 |
# |
12 |
######################################################## |
13 |
|
14 |
Import('*') |
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 |
runmodel_inst = local_env.Install(local_env['bininstall'], 'runmodel.py') |
25 |
py_inst = local_env.Install(local_env['pyinstall']+'/escript', pyc) |
26 |
env.Alias('install_escript_py', [runmodel_inst, py_inst]) |
27 |
|