summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-06-28 13:47:35 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-06-28 13:47:35 +0100
commit2f1a602c4bc8988c538297dbf49e6c9b486e2441 (patch)
tree4e92bb82e7973a691a6fa31c5ff6265057a9388a
parent04a533ca8c8fcea6d84a14f4ae8a672df94a2e46 (diff)
downloadlibguestfs-2f1a602c4bc8988c538297dbf49e6c9b486e2441.tar.gz
libguestfs-2f1a602c4bc8988c538297dbf49e6c9b486e2441.tar.xz
libguestfs-2f1a602c4bc8988c538297dbf49e6c9b486e2441.zip
python: Set PYTHON in run script.
-rw-r--r--python/Makefile.am4
-rw-r--r--run.in1
2 files changed, 2 insertions, 3 deletions
diff --git a/python/Makefile.am b/python/Makefile.am
index 6ffb0d8d..84941b30 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -45,9 +45,7 @@ libguestfsmod_la_CFLAGS = -Wall -I$(PYTHON_INCLUDEDIR) \
libguestfsmod_la_LIBADD = $(top_builddir)/src/libguestfs.la
libguestfsmod_la_LDFLAGS = -avoid-version -shared
-TESTS_ENVIRONMENT = \
- PYTHON=$(PYTHON) \
- $(top_builddir)/run --test
+TESTS_ENVIRONMENT = $(top_builddir)/run --test
TESTS = run-bindtests
diff --git a/run.in b/run.in
index cb55bcb3..2afe5a6d 100644
--- a/run.in
+++ b/run.in
@@ -64,6 +64,7 @@ fi
export PERL5LIB
# For Python.
+export PYTHON=@PYTHON@
if [ -z "$PYTHONPATH" ]; then
PYTHONPATH="$b/python:$b/python/.libs"
else