X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=python%2FMakefile.am;h=274b22e1cacf474460c22c2968b0a0637a7d10d3;hb=36e4541018b1fdec53f320dba3caf0d28ad04183;hp=da52cfa32a968bcb7f153b0474f8d3476c854b5d;hpb=11400fde901e1c7a6d3c3887f322af66374793c2;p=libguestfs.git diff --git a/python/Makefile.am b/python/Makefile.am index da52cfa..274b22e 100644 --- a/python/Makefile.am +++ b/python/Makefile.am @@ -18,17 +18,22 @@ # Old RHEL 5 autoconf doesn't have builddir. builddir ?= $(top_builddir)/python -EXTRA_DIST = \ - guestfs.py \ +include $(top_srcdir)/subdir-rules.mk + +generator_built = \ guestfs-py.c \ - bindtests.py \ + guestfs.py \ + bindtests.py + +EXTRA_DIST = \ + $(generator_built) \ run-bindtests \ run-python-tests \ t/*.py if HAVE_PYTHON -pythondir = $(PYTHON_SITE_PACKAGES) +pythondir = $(PYTHON_INSTALLDIR) python_DATA = guestfs.py @@ -41,7 +46,8 @@ libguestfsmod_la_LIBADD = $(top_builddir)/src/libguestfs.la TESTS_ENVIRONMENT = \ LIBGUESTFS_PATH=$(top_builddir)/appliance \ - PYTHONPATH=$(builddir):$(builddir)/.libs + PYTHONPATH=$(builddir):$(builddir)/.libs \ + TMPDIR=$(top_builddir) TESTS = run-bindtests run-python-tests