From e9c710135c40ec7eca82b2ee2fc8039ce737b6a9 Mon Sep 17 00:00:00 2001 From: Hubert Siejkowski Date: Thu, 10 Jul 2014 12:59:49 +0200 Subject: [PATCH] Fix configures and python test --- configure.ac | 4 ++-- pyext/Makefile.am | 8 ++++---- test/Makefile.am | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index f87d7c9..c09d4ec 100644 --- a/configure.ac +++ b/configure.ac @@ -630,7 +630,7 @@ else # Do we have wrappers (ctools_wrap.cpp and ctools.py)? has_wrappers="yes" - AC_CHECK_FILES([pyext/ctools_wrap.cpp pyext/ctools.py],, + AC_CHECK_FILES([pyext/ctools/ctools_wrap.cpp pyext/ctools/ctools.py],, [has_wrappers="no"]) if test "x$has_wrappers" = "xno"; then AC_MSG_WARN([Python wrapper missing. Requires swig for wrapper generation.]) @@ -669,7 +669,7 @@ if test "x$enable_python" = "xyes"; then else if test "x$has_python_wrap" = "xno" -a "x$has_swig" = "xno"; then - AC_MSG_WARN([Neither pyext/ctools_wrap.cpp and pyext/ctools.py nor swig has not been found]) + AC_MSG_WARN([Neither pyext/ctools/ctools_wrap.cpp and pyext/ctools/ctools.py nor swig has not been found]) AC_MSG_WARN([Python binding for ctools cannot be built]) AC_MSG_WARN([Either use a ctools distribution with ctools_wrap.cpp and ctools.py shipped or install swig on your system]) AC_MSG_WARN([swig can be obtained from http://www.swig.org/]) diff --git a/pyext/Makefile.am b/pyext/Makefile.am index b5bbfd6..9b2d2ce 100755 --- a/pyext/Makefile.am +++ b/pyext/Makefile.am @@ -39,7 +39,7 @@ include $(DEPFILES) # Define the targets that should be built before anything else. # These are honored by 'make all', 'make check' and 'make install'. if HAVE_SWIG - BUILT_SOURCES = ctools_wrap.cpp ctools/ctools.py + BUILT_SOURCES = ctools/ctools_wrap.cpp ctools/ctools.py endif # Set files to be removed in clean. We remove only the SWIG interface files @@ -59,7 +59,7 @@ all-local: build # 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: ctools_wrap.cpp ctools/ctools.py +build: ctools/ctools_wrap.cpp ctools/ctools.py $(PYTHON) setup.py build install-exec-local: @@ -70,8 +70,8 @@ clean-local: # Rule for building Python wrappers using SWIG. if HAVE_SWIG -ctools/ctools.py: ctools_wrap.cpp -ctools_wrap.cpp: $(SWIG_INTERFACE) +ctools/ctools.py: ctools/ctools_wrap.cpp +ctools/ctools_wrap.cpp: $(SWIG_INTERFACE) if $(SWIGCOMPILE) -MMD -MF "ctools.Tpi" -o ctools/ctools_wrap.cpp $<; \ then mv -f "ctools.Tpi" "ctools.Pi"; else rm -f "ctools.Tpi"; exit 1; fi endif # HAVE_SWIG diff --git a/test/Makefile.am b/test/Makefile.am index f94addb..6207e4c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -8,7 +8,7 @@ MACOSX_DEPLOYMENT_TARGET=@CONFIGURE_MACOSX_DEPLOYMENT_TARGET@ if WITH_PYTHON TEST_CSCRIPTS = test_cscripts.sh TEST_PYTHON_SCRIPT = test_python.py - TEST_PYTHON_ENV = PYTHONPATH=$(top_builddir)/pyext:$(top_builddir)/pyext/build/ctools:$(top_builddir)/scripts:$(pythondir):$(pyexecdir):$(PYTHONPATH) + TEST_PYTHON_ENV = PYTHONPATH=$(top_builddir)/pyext:$(top_builddir)/pyext/build/ctools/ctools:$(top_builddir)/scripts:$(pythondir):$(pyexecdir):$(PYTHONPATH) endif # Set test environment -- libgit2 0.21.4