aboutsummaryrefslogtreecommitdiff
path: root/swig
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2012-03-29 17:24:45 +0000
committerJamie Bullock <jamie@postlude.co.uk>2012-03-29 17:24:45 +0000
commit73ce4da587c7a9e63c64c4c21e62c9e25fc93466 (patch)
treeed21db1a81e6aac0d7e244ed77964f35463aa6a5 /swig
parentd78037e45f941ebf7eb1ad42e47577d749b8bc2d (diff)
downloadLibXtract-73ce4da587c7a9e63c64c4c21e62c9e25fc93466.tar.gz
LibXtract-73ce4da587c7a9e63c64c4c21e62c9e25fc93466.tar.bz2
LibXtract-73ce4da587c7a9e63c64c4c21e62c9e25fc93466.zip
- updated to latest SWIG macros
- added __init__.py so generated python module loads
Diffstat (limited to 'swig')
-rw-r--r--swig/python/Makefile.am6
-rw-r--r--swig/python/__init__.py0
2 files changed, 3 insertions, 3 deletions
diff --git a/swig/python/Makefile.am b/swig/python/Makefile.am
index e9b6747..1c7aa49 100644
--- a/swig/python/Makefile.am
+++ b/swig/python/Makefile.am
@@ -3,15 +3,15 @@ MAINTAINERCLEANFILES = xtract.py xtract_wrap.c Makefile.in _xtract.so
BUILT_SOURCES = $(srcdir)/xtract_wrap.c
SWIG_SOURCES = ../xtract.i
-pkgpython_PYTHON = xtract.py
+pkgpython_PYTHON = xtract.py __init__.py
pkgpyexec_LTLIBRARIES = _xtract.la
_xtract_la_SOURCES = $(srcdir)/xtract_wrap.c $(SWIG_SOURCES)
_xtract_la_CFLAGS = $(SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/src
_xtract_la_LDFLAGS = -module -lxtract
_xtract_la_LIBADD = $(top_srcdir)/src/libxtract.la
-xtract_wrap.c : $(SWIG_SOURCES)
- $(SWIG) $(SWIG_PYTHON_OPT) -I$(top_srcdir) -o $@ $<
+$(srcdir)/xtract_wrap.c : $(SWIG_SOURCES)
+ $(SWIG) $(AX_SWIG_PYTHON_OPT) -I$(top_srcdir) -o $@ $<
clean-local:
-rm -f _xtract.so xtract.py xtract_wrap.c xtract.pyc
diff --git a/swig/python/__init__.py b/swig/python/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/swig/python/__init__.py