(libspotswigpy_la_SOURCES, libspotswigpy_la_CFLAGS) (libspotswigpy_la_LDFLAGS): New variables. (_spot_la_LIBADD, _buddy_la_LDFLAGS): Link with libspotswigpy.la ($(srcdir)/spot_wrap.cxx, $(srcdir)/buddy_wrap.cxx): Run swig with -c. * wrap/python/tests/libpy.c: New file. * wrap/python/tests/run.in: Run python if no arguments are given. * wrap/python/tests/interdep.py: New file. * wrap/python/tests/Makefile.am (TESTS): Add interdep.py.
17 lines
373 B
Bash
17 lines
373 B
Bash
#!/bin/sh
|
|
|
|
# If we are running from make check (srcdir is set) and VERBOSE is
|
|
# unset, be quiet.
|
|
test -n "$srcdir" && test -z "$VERBOSE" && exec >/dev/null 2>&1
|
|
|
|
test -z "$1" && PYTHONPATH=..:@srcdir@/.. exec @PYTHON@
|
|
|
|
case $1 in
|
|
*.py)
|
|
PYTHONPATH=..:@srcdir@/.. exec @PYTHON@ "$@";;
|
|
*.test)
|
|
sh -x "$@";;
|
|
*)
|
|
echo "Unknown extension" 2>&1
|
|
exit 2;;
|
|
esac
|