[pynfft] 05/09: d/rules: more detailed targets, as in billiard
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri Jun 13 09:32:40 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 6faf3033eb177ee29f10ffc766e9b72d018615e3
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Jun 13 09:20:44 2014 +0100
d/rules: more detailed targets, as in billiard
---
debian/rules | 64 ++++++++++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 52 insertions(+), 12 deletions(-)
diff --git a/debian/rules b/debian/rules
index c0be952..711b6c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,35 +8,75 @@ PYTHON2_DEBUG_PACKAGE=${PYTHON2_PACKAGE}-dbg
PYTHON_DOC_PACKAGE=${PYTHON2_PACKAGE}-doc
PYTHON3_PACKAGE=python3-${SOURCE_PACKAGE}
PYTHON3_DEBUG_PACKAGE=${PYTHON3_PACKAGE}-dbg
-PYTHON2:=$(shell pyversions -vr)
-PYTHON3:=$(shell py3versions -vr)
+PYVERS:=$(shell pyversions -r)
+PY3VERS:=$(shell py3versions -r)
%:
dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
-build-python%:
- python$* setup.py build
+override_dh_auto_build:
+ set -e; \
+ for py in $(PYVERS) $(PY3VERS); do \
+ $$py -B setup.py build; \
+ done
-override_dh_auto_build: $(PYTHON3:%=build-python%)
- dh_auto_build
# 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
-install-python%:
- python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+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: $(PYTHON3:%=install-python%)
- dh_auto_install
+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
+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 -p${PYTHON2_PACKAGE} --dbg-package=${PYTHON2_DEBUG_PACKAGE}
- dh_strip -p${PYTHON3_PACKAGE} --dbg-package=${PYTHON3_DEBUG_PACKAGE}
+ dh_strip --package=$(PYTHON2_PACKAGE) \
+ --dbg-package=$(PYTHON2_DEBUG_PACKAGE)
+ dh_strip --package=$(PYTHON3_PACKAGE) \
+ --dbg-package=$(PYTHON3_DEBUG_PACKAGE)
endif
override_dh_sphinxdoc:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
dh_sphinxdoc --package=${PYTHON_DOC_PACKAGE}
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