[med-svn] [python-pysam] 01/01: Try to explicitly set HTSLIB_LIBRARY_DIR as recommended in https://github.com/pysam-developers/pysam/issues/34 but failed anyway

Andreas Tille tille at debian.org
Thu Sep 25 14:21:52 UTC 2014


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

tille pushed a commit to branch master
in repository python-pysam.

commit bca3445c2d4bf5f012c78b48cc8306098dad6d62
Author: Andreas Tille <tille at debian.org>
Date:   Thu Sep 25 15:12:04 2014 +0200

    Try to explicitly set HTSLIB_LIBRARY_DIR as recommended in https://github.com/pysam-developers/pysam/issues/34 but failed anyway
---
 debian/rules | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index 2484c24..c410ac9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,16 +5,18 @@ export PYBUILD_NAME=pysam
 DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 TESTPKG    := $(DEBPKGNAME)-tests
 
+HTSLIBDIR  := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
 # DEB_BUILD_OPTIONS := nocheck
 
 %:
 	dh $@ --with python2 --buildsystem=pybuild
 
-# Cython is recreating some c-files.  To enable building twice in a row these
-# will be saved in advance and restored afterwards
+# Make sure Cython is recreating some c-files.  To enable building twice in a
+# row these will be saved in advance and restored afterwards
 debian/savefiles:
 	mkdir -p debian/savefiles
-	cp -a `grep -l "Generated by Cython" pysam/*.c` debian/savefiles
+	mv `grep -l "Generated by Cython" pysam/*.c` debian/savefiles
 
 override_dh_clean:
 	dh_clean
@@ -25,15 +27,15 @@ override_dh_clean:
 	fi
 
 override_dh_auto_build: debian/savefiles
-	dh_auto_build
+	HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include dh_auto_build
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom \
 		--test-args='set -e; \
 			     cp -a $(CURDIR)/tests {build_dir}/tests ; \
-			     cd {build_dir}/tests && PYTHONPATH={build_dir} {interpreter} ./pysam_test.py \
-			                          && PYTHONPATH={build_dir} {interpreter} ./tabix_test.py '
+			     cd {build_dir}/tests && HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include PYTHONPATH={build_dir} {interpreter} ./pysam_test.py \
+			                          && HTSLIB_LIBRARY_DIR=$(HTSLIBDIR) HTSLIB_INCLUDE_DIR=/usr/include PYTHONPATH={build_dir} {interpreter} ./tabix_test.py '
 endif
 
 override_dh_install-indep:

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