[pynfft] 05/05: d/rules: use pybuild as pkg build system

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Aug 5 16:23:49 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 e255e3ebd320b577386254a8047ec87999cbcba1
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Aug 5 16:09:00 2014 +0100

    d/rules: use pybuild as pkg build system
---
 debian/rules | 80 ++++++------------------------------------------------------
 1 file changed, 8 insertions(+), 72 deletions(-)

diff --git a/debian/rules b/debian/rules
index 711b6c1..e3f6770 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,82 +1,18 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-
-SOURCE_PACKAGE=pynfft
-PYTHON2_PACKAGE=python-${SOURCE_PACKAGE}
-PYTHON2_DEBUG_PACKAGE=${PYTHON2_PACKAGE}-dbg
-PYTHON_DOC_PACKAGE=${PYTHON2_PACKAGE}-doc
-PYTHON3_PACKAGE=python3-${SOURCE_PACKAGE}
-PYTHON3_DEBUG_PACKAGE=${PYTHON3_PACKAGE}-dbg
-PYVERS:=$(shell pyversions -r)
-PY3VERS:=$(shell py3versions -r)
+#export DH_VERBOSE=1
+export PYBUILD_NAME=pynfft
+export PYBUILD_AFTER_INSTALL_python2=dh_numpy
+export PYBUILD_AFTER_INSTALL_python3=dh_numpy3
 
 %:
-	dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
-
-override_dh_auto_build:
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py build; \
-	done
-
-	# see: https://wiki.debian.org/Python/LibraryStyleGuide
-	python setup.py build_ext --inplace
-	PYTHONPATH=. http_proxy='127.0.0.1:9' python setup.py build_sphinx -b html
-
-override_dh_auto_clean:
-	set -e; \
-	for py in $(PYVERS) $(PY3VERS); do \
-		$$py -B setup.py clean; \
-		rm -rf build; \
-	done
-	find -name __pycache__ | xargs rm -rf
-	find -name "*.pyc" -delete
-
-override_dh_auto_install:
-	set -e; \
-	for py in $(PYVERS); do \
-		$$py -B setup.py install --skip-build \
-			--root debian/$(PYTHON2_PACKAGE) \
-			--install-layout deb; \
-	done
-	dh_numpy
-
-	set -e; \
-	for py in $(PY3VERS); do \
-		$$py -B setup.py install --skip-build \
-			--root debian/$(PYTHON3_PACKAGE) \
-			--install-layout deb; \
-	done
-	dh_numpy3
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e; \
-	for py in $(PYVERS); do \
-		$$py setup.py build_ext --inplace; \
-		nosetests-2.7; \
-	done
-
-	set -e; \
-	for py in $(PY3VERS); do \
-		$$py setup.py build_ext --inplace; \
-		nosetests3; \
-	done
-endif
-
-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)
-endif
+override_dh_auto_install-indep:
+	python setup.py build_sphinx -b html
 
 override_dh_sphinxdoc:
 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
-	dh_sphinxdoc --package=${PYTHON_DOC_PACKAGE}
+	dh_sphinxdoc --package=python-${PYBUILD_NAME}-doc
 endif
-
-override_dh_sphinxdoc-arch:
-

-- 
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