Skip to content
Snippets Groups Projects
Commit cd5f54fb authored by Ralf Mueller's avatar Ralf Mueller :fishing_pole_and_fish:
Browse files

make SWIG mandatory for rb/py interface generation

add testfile dependency to python test
parent d8ed52bb
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment