[libfann] 130/133: Run "python-build" autopkgtest after build
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:07:56 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 eed4e71476c91d8016a878e67e82f6ea3ca85c88
Author: Christian Kastner <debian at kvr.at>
Date: Thu Apr 24 00:51:02 2014 +0200
Run "python-build" autopkgtest after build
---
debian/rules | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/debian/rules b/debian/rules
index d094244..fd69ef7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,7 +33,11 @@ override_dh_auto_configure-indep:
override_dh_auto_build-arch:
# Library
dh_auto_build
- # Python extension
+ # Python extension. Must be run twice, because distutils runs build_py
+ # before build_ext, but build_py relies on output from build_ext (from
+ # SWIG), and the order cannot be changed. This is a known issue, see
+ # http://bugs.python.org/issue7562
+ dh_auto_build --buildsystem=pybuild --sourcedirectory=python
dh_auto_build --buildsystem=pybuild --sourcedirectory=python
@@ -45,13 +49,22 @@ override_dh_auto_build-indep:
override_dh_auto_test-arch:
# Simulate partial autopkgtest run by providing an ADTTMP and setting
- # CPATH/LIBRARY_PATH accordingly.
+ # CPATH/LIBRARY_PATH resp. PYTHONPATH accordingly.
testrundir=$$(mktemp -d) ;\
ADTTMP=$$testrundir CPATH=$(CURDIR)/src/include LIBRARY_PATH=$(CURDIR)/src/.libs \
/bin/sh $(CURDIR)/debian/tests/build ;\
res=$$? ;\
rm -rf "$$testrundir" ;\
- exit $$res
+ [ $$res -eq 0 ] || exit $$res ;\
+ \
+ for py in $(PYVERS); do \
+ testrundir=$$(mktemp -d) ;\
+ ADTTMP=$$testrundir PYTHONPATH=$(CURDIR)/.pybuild/pythonX.Y_$$py/build/ \
+ /bin/sh $(CURDIR)/debian/tests/python-build ;\
+ res=$$? ;\
+ rm -rf "$$testrundir" ;\
+ [ $$res -eq 0 ] || exit $$res ;\
+ done
override_dh_auto_test-indep:
--
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