Test suite passes. The patch needs to be generalized before forwarding
upstream.
--- /dev/null
+Description: Do not use internal htslib library
+Author: Afif Elghraoui <afif@debian.org>
+Forwarded: not-needed
+Last-Update: 2017-01-26
+--- python-pysam.orig/setup.py
++++ python-pysam/setup.py
+@@ -255,7 +255,7 @@
+ else:
+ raise ValueError("unknown HTSLIB value '%s'" % HTSLIB_MODE)
+
+-internal_htslib_libraries = [os.path.splitext("chtslib{}".format(sysconfig.get_config_var('SO')))[0]]
++internal_htslib_libraries = []
+
+ # build config.py
+ with open(os.path.join("pysam", "config.py"), "w") as outf:
rpath.patch
+htslib-external-config.patch