1 |
|
2 |
######################################################## |
3 |
# |
4 |
# Copyright (c) 2003-2012 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 |
if local_env['gmsh']=='m': |
18 |
Execute(Copy('gmshrunner.py', File('#/pycad/py_src/gmshrunner_mpi.py_'))) |
19 |
else: |
20 |
Execute(Copy('gmshrunner.py', File('#/pycad/py_src/gmshrunner_ser.py_'))) |
21 |
|
22 |
# get the test source file names |
23 |
sources = Glob('*.py') |
24 |
|
25 |
# compile |
26 |
pyc = local_env.PyCompile(sources) |
27 |
|
28 |
# install |
29 |
py_inst = local_env.Install(local_env['pyinstall']+'/pycad', pyc) |
30 |
env.Alias('install_pycad_py', py_inst) |
31 |
|
32 |
# configure python unit tests |
33 |
local_env.SConscript(dirs = ['#/pycad/test/python'], variant_dir='$BUILD_DIR/$PLATFORM/pycad/test/python', duplicate=0) |
34 |
|