Skip to content

Commit 9e04293

Browse files
committed
Merge pull request #1500 from UV-CDAT/issue_1499_runtest_and_mpi_args_broken
Issue 1499 runtest and mpi args broken
2 parents 813ce33 + 2d0120a commit 9e04293

File tree

7 files changed

+332
-328
lines changed

7 files changed

+332
-328
lines changed

CMake/cdat_modules_extra/matplotlib_setup_cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[directories]
77
# Uncomment to override the default basedir in setupext.py.
88
# This can be a single directory or a space-delimited list of directories.
9-
basedirlist = @INSTALL_DIR@
9+
# basedirlist = @INSTALL_DIR@
1010

1111
[status]
1212
# To suppress display of the dependencies and their versions

CMake/cdat_modules_extra/runpytest.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# a set of aliases for that trail (to replace filenames for example)
77
# the filename of the image to compare against
88

9-
# set upuvcdat run time environment
9+
# setup uvcdat run time environment
1010
. @CMAKE_INSTALL_PREFIX@/bin/setup_runtime.sh
1111

1212
# play back the requested vistrail and make an image
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22
# source is not portable whereas . is
33
. "@CMAKE_INSTALL_PREFIX@/bin/setup_runtime.sh"
4-
python@PYVER@ "$@"
4+
$@

Packages/cdms2/setup.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,19 @@
2222
import mpi4py
2323
## Ok we have mpi4py let's build with support for it
2424
macros.append(("PARALLEL",None))
25-
os.environ["CC"]="mpicc"
25+
import subprocess
26+
try:
27+
mpicc = os.path.join(cdat_info.externals,"bin","mpicc")
28+
subprocess.check_call([mpicc,"--version"])
29+
except Exception,err:
30+
mpicc="mpicc"
31+
subprocess.check_call([mpicc,"--version"])
32+
os.environ["CC"]=mpicc
2633
os.environ["CFLAGS"]="-w -g"
2734
except:
2835
os.environ["CFLAGS"]="-w -g"
2936
pass
30-
import cdat_info
31-
## if cdat_info.CDMS_INCLUDE_DAP=='yes':
32-
## macros.append(("NONC4",None))
33-
print "MACROS PASSED:",macros
37+
3438
setup (name = "cdms2",
3539
version='5.0',
3640
description = "Climate Data Management System, Numpy version",

testing/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
#add_subdirectory(uvcdat)
33

44
# Helper macro that sets the environment correctly
5-
macro (cdat_add_test name python_exe script)
5+
macro (cdat_add_test name)
66
#string (REPLACE ";" " " TEST_ARGS "${ARGN}")
77
add_test(${name} "${CMAKE_INSTALL_PREFIX}/bin/runtest"
8-
${script} ${ARGN})
8+
${ARGN})
99
if(DEFINED ENV{UVCDAT_ANONYMOUS_LOG})
1010
set_tests_properties (${name}
1111
PROPERTIES ENVIRONMENT "UVCDAT_ANONYMOUS_LOG=$ENV{UVCDAT_ANONYMOUS_LOG}"

testing/matplotlib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cdat_add_test(matplotlib_verify_import
2-
"{PYTHON_EXECUTABLE}"
2+
"${PYTHON_EXECUTABLE}"
33
${cdat_SOURCE_DIR}/testing/matplotlib/test_matplotlib_import.py
44
)
55

66
if (CDAT_BUILD_BASEMAP)
77
cdat_add_test(basemap_verify_import
8-
"{PYTHON_EXECUTABLE}"
8+
"${PYTHON_EXECUTABLE}"
99
${cdat_SOURCE_DIR}/testing/matplotlib/test_basemap_import.py
1010
)
1111
endif()

0 commit comments

Comments
 (0)