[med-svn] [python-pysam] 01/01: Test suite for Python 3.4 needs a strange hack to rename *.so libraries. Otherwise these are not found. Help will be requested on this issue
Andreas Tille
tille at debian.org
Tue Jul 21 14:26:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-pysam.
commit 66f1f2f490e31d851ce82fc596895ff695b95108
Author: Andreas Tille <tille at debian.org>
Date: Tue Jul 21 16:25:18 2015 +0200
Test suite for Python 3.4 needs a strange hack to rename *.so libraries. Otherwise these are not found. Help will be requested on this issue
---
debian/changelog | 2 +-
debian/rules | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 819e0cd..7288432 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-python-pysam (0.8.3+ds1-3) UNRELEASED; urgency=medium
+python-pysam (0.8.3+ds1-2) UNRELEASED; urgency=medium
[ Afif Elghraoui ]
* Team upload.
diff --git a/debian/rules b/debian/rules
index 41caf79..35c3884 100755
--- a/debian/rules
+++ b/debian/rules
@@ -35,11 +35,18 @@ override_dh_auto_clean:
override_dh_auto_test:
# Tests are stumbling upon missing ex1.bam file ...
ln -s pysam_data/ex1.bam tests
+ # For some strange reasons the extension of so files in Python 3.4
+ # build tree are named .cpython-34m.so and thus will not be found
+ # by the test scripts. For the moment set some symlinks here to
+ # enable running the test suite
+ for so in `find .pybuild -name "*.cpython-34m.so"` ; do sso=`echo $${so} | sed 's/.cpython-34m//'`; ln -s `basename $${so}` $${sso} ; done
PYBUILD_SYSTEM=custom \
- PYBUILD_TEST_ARGS="cd tests && make -C pysam_data && if [ {version} = 2.7 ] ; then echo ""This should be 2.7 / python2.7: {version} / {interpreter}"" ; nosetests -s -v ; else echo ""This should be 3 / python3.4: {version} / {interpreter}"" ; nosetests3 -s -v ; fi" dh_auto_test || \
+ PYBUILD_TEST_ARGS="cd tests && make -C pysam_data && if [ {version} = 2.7 ] ; then nosetests -s ; else nosetests3 -s -v ; fi" dh_auto_test || \
echo "Ignoring test failures"
# remove ex1.bam that was created above
rm -f tests/ex1.bam
+ # The so-symlinks above need to be removed - otherwise dh_python3 will fail
+ find .pybuild -type l -name "*.so" -delete
get-orig-source:
uscan --verbose --force-download --repack --compression xz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pysam.git
More information about the debian-med-commit
mailing list