15 |
EnsureSConsVersion(0,96,91) |
EnsureSConsVersion(0,96,91) |
16 |
EnsurePythonVersion(2,3) |
EnsurePythonVersion(2,3) |
17 |
|
|
18 |
import sys, os, re, socket, platform |
import sys, os, re, socket, platform, stat |
19 |
|
|
20 |
# Add our extensions |
# Add our extensions |
21 |
if os.path.isdir('scons'): sys.path.append('scons') |
if os.path.isdir('scons'): sys.path.append('scons') |
189 |
#the long long warning occurs on the Mac |
#the long long warning occurs on the Mac |
190 |
cc_optim = "-O3" |
cc_optim = "-O3" |
191 |
cc_debug = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK" |
cc_debug = "-g -O0 -DDOASSERT -DDOPROF -DBOUNDS_CHECK" |
192 |
omp_optim = "" |
omp_optim = "-fopenmp" |
193 |
omp_debug = "" |
omp_debug = "-fopenmp" |
194 |
omp_libs = [] |
omp_libs = ['gomp'] |
195 |
pedantic = "-pedantic-errors -Wno-long-long" |
pedantic = "-pedantic-errors -Wno-long-long" |
196 |
fatalwarning = "-Werror" |
fatalwarning = "-Werror" |
197 |
sysheaderopt = "-isystem " |
sysheaderopt = "-isystem " |
656 |
Execute(Delete(env['libinstall'] + "/Compiled.with.debug")) |
Execute(Delete(env['libinstall'] + "/Compiled.with.debug")) |
657 |
Execute(Delete(env['libinstall'] + "/Compiled.with.mpi")) |
Execute(Delete(env['libinstall'] + "/Compiled.with.mpi")) |
658 |
Execute(Delete(env['libinstall'] + "/Compiled.with.openmp")) |
Execute(Delete(env['libinstall'] + "/Compiled.with.openmp")) |
659 |
|
Execute(Delete(env['libinstall'] + "pyversion")) |
660 |
if not env['usempi']: Execute(Delete(env['libinstall'] + "/pythonMPI")) |
if not env['usempi']: Execute(Delete(env['libinstall'] + "/pythonMPI")) |
661 |
|
|
662 |
|
|
781 |
for tests in TestGroups: |
for tests in TestGroups: |
782 |
utest.write(tests.makeString()) |
utest.write(tests.makeString()) |
783 |
utest.close() |
utest.close() |
784 |
|
os.chmod("utest.sh",stat.S_IRWXU|stat.S_IRGRP|stat.S_IXGRP|stat.S_IROTH|stat.S_IXOTH) |
785 |
print "utest.sh written" |
print "utest.sh written" |
786 |
except IOError: |
except IOError: |
787 |
print "Error attempting to write unittests file." |
print "Error attempting to write unittests file." |