From ba2a1b5892b54d1068cd9411456f0b3ac3901609 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Thu, 10 Feb 2011 10:32:01 +0000 Subject: [PATCH] update for python testing --- pyext/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyext/Makefile.am b/pyext/Makefile.am index 54e08e5..bee50c1 100755 --- a/pyext/Makefile.am +++ b/pyext/Makefile.am @@ -21,7 +21,15 @@ if HAVE_SWIG CLEANFILES = ctatools_wrap.cpp ctatools.py endif -all-local: ctatools_wrap.cpp ctatools.py +all-local: build + +# We build the python extension twice since the install step needs the result +# in a specific directory and the test make check has no access to the name +# of this specific directory. So we build one instance for checking, the other +# for installation. If we could get the name built by distutils we could avoid +# this. +build: ctatools_wrap.cpp ctatools.py + $(PYTHON_BUILD_PREFIX) $(PYTHON) setup.py build --build-platlib build $(PYTHON_BUILD_PREFIX) $(PYTHON) setup.py build install-exec-local: -- libgit2 0.21.4