[med-svn] [python-pysam] 08/21: Update packaging for external htslib link due to build system changes

Afif Elghraoui afif at moszumanska.debian.org
Sun Mar 6 07:57:40 UTC 2016


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

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

commit c2da576075a399205c3d8c50a944110fd60f2e4f
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Mar 5 14:04:24 2016 -0800

    Update packaging for external htslib link due to build system changes
---
 debian/patches/adding-include-hts-dirs             | 11 ----------
 .../change-htslib-statement-to-link-to-debian      | 25 ----------------------
 debian/patches/series                              |  2 --
 debian/rules                                       |  1 +
 4 files changed, 1 insertion(+), 38 deletions(-)

diff --git a/debian/patches/adding-include-hts-dirs b/debian/patches/adding-include-hts-dirs
deleted file mode 100644
index 5f3194c..0000000
--- a/debian/patches/adding-include-hts-dirs
+++ /dev/null
@@ -1,11 +0,0 @@
-Description: Added the include dirs
---- python-pysam.orig/setup.py
-+++ python-pysam/setup.py
-@@ -116,6 +116,7 @@
-     chtslib_sources = []
-     shared_htslib_sources = htslib_sources
-     htslib_library_dirs = HTSLIB_LIBRARY_DIR
-+    htslib_include_dirs = [HTSLIB_INCLUDE_DIR]
-     htslib_libraries = ['hts']
- else:
-     raise ValueError("unknown HTSLIB value '%s'" % HTSLIB_MODE)
diff --git a/debian/patches/change-htslib-statement-to-link-to-debian b/debian/patches/change-htslib-statement-to-link-to-debian
deleted file mode 100644
index d607a0f..0000000
--- a/debian/patches/change-htslib-statement-to-link-to-debian
+++ /dev/null
@@ -1,25 +0,0 @@
-Description: Trying to bind to debian htslib
---- python-pysam.orig/setup.py
-+++ python-pysam/setup.py
-@@ -43,7 +43,7 @@
- #         pysam.
- # external: use shared libhts.so compiled outside of
- #           pysam
--HTSLIB_MODE = "separate"
-+HTSLIB_MODE = "external"
- HTSLIB_LIBRARY_DIR = os.environ.get('HTSLIB_LIBRARY_DIR', None)
- HTSLIB_INCLUDE_DIR = os.environ.get('HTSLIB_INCLUDE_DIR', None)
- 
-@@ -111,6 +111,12 @@
-     htslib_library_dirs = ['pysam']
-     htslib_include_dirs = ['htslib']
-     htslib_libraries = ['chtslib']
-+elif HTSLIB_MODE == 'external':
-+    htslib_sources = []
-+    chtslib_sources = []
-+    shared_htslib_sources = htslib_sources
-+    htslib_library_dirs = HTSLIB_LIBRARY_DIR
-+    htslib_libraries = ['hts']
- else:
-     raise ValueError("unknown HTSLIB value '%s'" % HTSLIB_MODE)
- 
diff --git a/debian/patches/series b/debian/patches/series
index d7785a3..878b584 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,2 @@
-change-htslib-statement-to-link-to-debian
-adding-include-hts-dirs
 ignore-htslib-dir.patch
 disable-tests-requiring-network.patch
diff --git a/debian/rules b/debian/rules
index 126c2b5..cdf23f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ export PYBUILD_NAME=pysam
 
 TESTPKG    := $(DEB_SOURCE)-tests
 
+export HTSLIB_MODE=external
 HTSLIBDIR  := /usr/lib/$(DEB_HOST_MULTIARCH)
 export HTSLIB_LIBRARY_DIR=$(HTSLIBDIR)
 export HTSLIB_INCLUDE_DIR=/usr/include

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