2014-04-01 08:54:03 +00:00
|
|
|
# examples/python include file for CMake
|
|
|
|
|
|
|
|
set -ea
|
2015-01-26 17:26:18 +00:00
|
|
|
# If this environment variable is set, then become verbose
|
|
|
|
# so one can see why and how a test failed
|
|
|
|
if test "x$ECCODES_TEST_VERBOSE_OUTPUT" != "x"; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
2014-04-01 08:54:03 +00:00
|
|
|
data_dir=@PROJECT_BINARY_DIR@/data
|
|
|
|
|
2015-03-10 18:19:51 +00:00
|
|
|
# use definitions from binary dir to test if installation will be correct
|
2017-02-03 13:49:24 +00:00
|
|
|
def_dir="@CMAKE_BINARY_DIR@/@ECCODES_DEFINITION_SUFF@"
|
2015-01-23 22:47:51 +00:00
|
|
|
ECCODES_DEFINITION_PATH="${def_dir}"
|
|
|
|
export ECCODES_DEFINITION_PATH
|
2014-04-01 08:54:03 +00:00
|
|
|
|
2017-02-03 14:21:24 +00:00
|
|
|
tools_dir=@CMAKE_BINARY_DIR@/bin
|
2017-02-03 14:29:47 +00:00
|
|
|
examples_dir=@CMAKE_CURRENT_BINARY_DIR@
|
2015-10-16 17:17:30 +00:00
|
|
|
examples_src=@CMAKE_CURRENT_SOURCE_DIR@/
|
2014-04-01 08:54:03 +00:00
|
|
|
|
2015-03-10 18:19:51 +00:00
|
|
|
# use samples from binary dir to test if installation will be correct
|
2017-02-03 13:49:24 +00:00
|
|
|
samp_dir="@CMAKE_BINARY_DIR@/@ECCODES_SAMPLES_SUFF@"
|
2015-01-23 22:47:51 +00:00
|
|
|
ECCODES_SAMPLES_PATH=${samp_dir}
|
|
|
|
export ECCODES_SAMPLES_PATH
|
2014-04-01 08:54:03 +00:00
|
|
|
|
2016-07-13 16:25:36 +00:00
|
|
|
PYTHONPATH=@PROJECT_BINARY_DIR@/python:$PYTHONPATH
|
2014-04-01 08:54:03 +00:00
|
|
|
export PYTHONPATH
|