+++ /dev/null
-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)
+++ /dev/null
-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)
-
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