Commit 13e3805e authored by Ralf Mueller's avatar Ralf Mueller 🎣
Browse files

make SWIG mandatory for rb/py interface generation

add testfile dependency to python test
parent e096bc25
......@@ -297,7 +297,7 @@ AC_ARG_ENABLE([ruby],
CPPFLAGS=$save_CPPFLAGS
AS_IF([test "x$RUBY" != "x"],
[AS_IF([test "x$SWIG" = "x"],
[AC_MSG_NOTICE([Ruby bindings: Swig is disabled, pregenerated files will be used. Use '--enable-swig' for swig usage])])],
[AC_MSG_ERROR([Ruby bindings: Please enable SWIG with '--enable-swig'!])])],
[AS_IF([test `$SWIG -help 2>&1 | $GREP -c '\-ruby *- Generate'` = 0],
[AC_MSG_NOTICE([No (swig does not support -ruby option)])
enable_ruby=no
......@@ -323,7 +323,7 @@ AC_ARG_ENABLE(python,
done
AS_IF([test "x$enable_python" != "xno"],
[AS_IF([test "x$SWIG" = "x"],
[AC_MSG_NOTICE([Python bindings: Swig is disabled, pregenerated files will be used. Use '--enable-swig' for swig usage])],
[AC_MSG_ERROR([Python bindings: Please enable SWIG with '--enable-swig'!])],
[PYTHON=])],
[AS_IF([test `$SWIG -help 2>&1 | $GREP -c '\-python *- Generate'` = 0],
[AC_MSG_NOTICE([No (swig does not support -python option)])
......
......@@ -82,7 +82,7 @@ $(PYTHON_SHARED_LIB): $(PYTHON_WRAPPER_FILE) $(abs_top_srcdir)/interfaces/python
python-binding: $(PYTHON_SHARED_LIB)
pythonTest: $(abs_top_srcdir)/interfaces/python/test.py
pythonTest: $(abs_top_srcdir)/interfaces/python/test.py mulval.nc
@cd python; python $<
install-python: $(PYTHON_SHARED_LIB) mulval.nc
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment