[libfann] 119/133: Use additional build system "pybuild"

Christian Kastner chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:07:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to branch master
in repository libfann.

commit 25fb3b488fbf24dee14f89a2d2e727d92e303c35
Author: Christian Kastner <debian at kvr.at>
Date:   Tue Mar 25 15:32:43 2014 +0100

    Use additional build system "pybuild"
    
    This supplements the auto-detected "makefile".
---
 debian/rules | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/debian/rules b/debian/rules
index 151f724..e918622 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,9 @@
 # These get included in the build flags by debhelper
 export DEB_CFLAGS_MAINT_APPEND += -Wall
 
+# For pybuild
+export PYBUILD_NAME=pyfann
+
 # List of supported Python versions
 PYVERS = $(shell pyversions -r -v)
 
@@ -24,13 +27,10 @@ override_dh_auto_configure-indep:
 
 
 override_dh_auto_build-arch:
+	# Library
 	dh_auto_build
-	
-	# Build extension for every supported Python verson
-	cd python; \
-	for py in $(PYVERS); do \
-		python$$py setup.py build; \
-	done
+	# Python extension
+	dh_auto_build --buildsystem=pybuild --sourcedirectory=python
 
 
 override_dh_auto_build-indep:
@@ -40,18 +40,15 @@ override_dh_auto_build-indep:
 
 
 override_dh_auto_install-arch:
+	# Library
 	dh_auto_install
 	
 	# Clear .la dependency_libs as required by Policy 10.2
 	sed -i -e "s/dependency_libs='.*'/dependency_libs=''/" \
 		debian/tmp/usr/lib/*/*.la
 	
-	# Install python extensions from python/, so dh_pysupport can pick them up
-	cd python; \
-	for py in $(PYVERS); do \
-		python$$py setup.py install -f --root $(CURDIR)/debian/python-pyfann \
-			--install-layout=deb; \
-	done
+	# Python extension
+	dh_auto_install --buildsystem=pybuild --sourcedirectory=python
 
 
 override_dh_auto_install-indep:
@@ -107,8 +104,11 @@ override_dh_auto_clean:
 	# Perform regular clean process
 	dh_auto_clean
 	
-	# Clean up Python stuff
-	rm -rf python/build python/pyfann/*.cxx python/pyfann/libfann.py
+	# Python clean
+	dh_auto_clean --buildsystem=pybuild --sourcedirectory=python
+	
+	# SWIG stuff
+	rm -rf python/pyfann/pyfann_wrap.cpp python/pyfann/libfann.py
 	
 	# Remove output generated by naturaldocs
 	rm -rf doc/proj doc/html

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list