+pythondir = $(PYTHON_SITE_PACKAGES)
+
+python_DATA = guestfs.py
+
+python_LTLIBRARIES = libguestfsmod.la
+
+libguestfsmod_la_SOURCES = guestfs-py.c
+libguestfsmod_la_CFLAGS = -Wall -I$(PYTHON_INCLUDEDIR) \
+ -I$(top_srcdir)/src -I$(top_builddir)/src
+libguestfsmod_la_LIBADD = $(top_builddir)/src/libguestfs.la
+
+TESTS_ENVIRONMENT = \
+ LIBGUESTFS_PATH=$(top_builddir)/appliance \
+ PYTHONPATH=$(builddir):$(builddir)/.libs
+
+TESTS = run-bindtests run-python-tests
+
+endif