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') |
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." |