File tree Expand file tree Collapse file tree 7 files changed +332
-328
lines changed
Expand file tree Collapse file tree 7 files changed +332
-328
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11#! /bin/bash
22# source is not portable whereas . is
33. " @CMAKE_INSTALL_PREFIX@/bin/setup_runtime.sh"
4- python@PYVER@ " $@ "
4+ $@
Original file line number Diff line number Diff line change 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"
2734except :
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+
3438setup (name = "cdms2" ,
3539 version = '5.0' ,
3640 description = "Climate Data Management System, Numpy version" ,
Original file line number Diff line number Diff line change 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} "
Original file line number Diff line number Diff line change 11cdat_add_test (matplotlib_verify_import
2- "{PYTHON_EXECUTABLE}"
2+ "$ {PYTHON_EXECUTABLE} "
33 ${cdat_SOURCE_DIR} /testing/matplotlib/test_matplotlib_import.py
44)
55
66if (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 )
1111endif ()
You can’t perform that action at this time.
0 commit comments