[pynfft] 01/03: d/rules: same rules layout as in pyfftw

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jun 9 14:38:56 UTC 2014


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

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

commit 7a3c5b738f229b2657802ec6c2489993b5df39c6
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Jun 9 15:20:42 2014 +0100

    d/rules: same rules layout as in pyfftw
---
 debian/python-pynfft.install  |  1 +
 debian/python3-pynfft.install |  1 +
 debian/rules                  | 27 +++++++++++++++------------
 3 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/debian/python-pynfft.install b/debian/python-pynfft.install
new file mode 100644
index 0000000..b2cc136
--- /dev/null
+++ b/debian/python-pynfft.install
@@ -0,0 +1 @@
+usr/lib/python2*
diff --git a/debian/python3-pynfft.install b/debian/python3-pynfft.install
new file mode 100644
index 0000000..b06a399
--- /dev/null
+++ b/debian/python3-pynfft.install
@@ -0,0 +1 @@
+usr/lib/python3
diff --git a/debian/rules b/debian/rules
index e9534cb..066dbc5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,34 +1,37 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-export DH_VERBOSE=1
-export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
-export PYBUILD_NAME=pynfft
-export DEBPYTHON3_SUPPORTED=3.3
 
-PYTHON2_PACKAGE=python-${PYBUILD_NAME}
+SOURCE_PACKAGE=pynfft
+PYTHON2_PACKAGE=python-${SOURCE_PACKAGE}
 PYTHON2_DEBUG_PACKAGE=${PYTHON2_PACKAGE}-dbg
 PYTHON_DOC_PACKAGE=${PYTHON2_PACKAGE}-doc
-PYTHON3_PACKAGE=python3-${PYBUILD_NAME}
+PYTHON3_PACKAGE=python3-${SOURCE_PACKAGE}
 PYTHON3_DEBUG_PACKAGE=${PYTHON3_PACKAGE}-dbg
 
 %:
-	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+	dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
 
-override_dh_auto_build:
+build-python%:
+	python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
 	dh_auto_build
 	# see: https://wiki.debian.org/Python/LibraryStyleGuide
 	PYTHONPATH=. http_proxy='127.0.0.1:9' python setup.py build_sphinx -b html
 
-override_dh_auto_install:
-	dh_auto_install 
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
 	dh_numpy
 	dh_numpy3
 
 override_dh_strip:
 ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
-	dh_strip --package=${PYTHON2_PACKAGE} --dbg-package=${PYTHON2_DEBUG_PACKAGE}
-	dh_strip --package=${PYTHON3_PACKAGE} --dbg-package=${PYTHON3_DEBUG_PACKAGE}
+	dh_strip -p${PYTHON2_PACKAGE} --dbg-package=${PYTHON2_DEBUG_PACKAGE}
+	dh_strip -p${PYTHON3_PACKAGE} --dbg-package=${PYTHON3_DEBUG_PACKAGE}
 endif
 
 override_dh_sphinxdoc:

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



More information about the debian-science-commits mailing list