[pyfftw] 05/09: d/rules: use newer pybuild as build system

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Jan 18 19:09:30 UTC 2014


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

ghisvail-guest pushed a commit to branch master
in repository pyfftw.

commit e2d65b7933a646cd22bf9a1b98d0f6caa02cc3b0
Author: Ghislain Vaillant <ghisvail at gmail.com>
Date:   Sat Jan 18 18:46:39 2014 +0000

    d/rules: use newer pybuild as build system
---
 debian/rules | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

diff --git a/debian/rules b/debian/rules
index 0750138..65463bb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,23 +1,27 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
 
-PACKAGE_NAME=python-fftw3
-PYTHON2:=$(shell pyversions -vr)
-PYTHON3:=$(shell py3versions -vr)
+   export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+   export DH_VERBOSE=1
+   export PYBUILD_NAME=fftw3
 
 %:
-	dh $@ --buildsystem=python_distutils --with python2,python3,quilt
+	dh $@ --with python2,python3,quilt --buildsystem=pybuild
+
 
-build-python%:
-	python$* setup.py build
+override_dh_auto_install:
+	dh_auto_install
+	dh_numpy
+	dh_numpy3
 
-override_dh_auto_build: $(PYTHON3:%=build-python%)
-	dh_auto_build
 
-install-python%:
-	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip -ppython-${PYBUILD_NAME} --dbg-package=python-${PYBUILD_NAME}-dbg
+	dh_strip -ppython3-${PYBUILD_NAME} --dbg-package=python3-${PYBUILD_NAME}-dbg
+endif
 
-override_dh_auto_install: $(PYTHON3:%=install-python%)
-	dh_auto_install
 
 override_dh_installdocs:
 	dh_installdocs

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



More information about the debian-science-commits mailing list