Revert "drop python2"
authorMichael R. Crusoe <michael.crusoe@gmail.com>
Sun, 17 Nov 2019 16:34:03 +0000 (17:34 +0100)
committerMichael R. Crusoe <michael.crusoe@gmail.com>
Sun, 17 Nov 2019 16:34:03 +0000 (17:34 +0100)
This reverts commit feea4660e2dfdd2702594e1eee0bae3c53c6d3cb.

debian/control
debian/python-pysam.links [new file with mode: 0755]
debian/python-pysam.lintian-overrides [new file with mode: 0644]
debian/rules

index 86273696f4957eacf31a899a92b8c69ce36ac868..ca1f9b8124391841ec2560c53ec61f77fc7dacbd 100644 (file)
@@ -10,18 +10,35 @@ Build-Depends: debhelper (>= 11~),
                dh-python,
                libhts-dev (>= 1.9),
                zlib1g-dev,
+               python-all-dev,
+               python-setuptools,
+               cython (>= 0.23),
                python3-all-dev,
                python3-setuptools,
                cython3 (>= 0.23),
                tabix <!nocheck>,
                samtools (>= 1.9) <!nocheck>,
                bcftools (>= 1.9) <!nocheck>,
+               python-pytest <!nocheck>,
                python3-pytest <!nocheck>
 Standards-Version: 4.3.0
 Vcs-Browser: https://salsa.debian.org/med-team/python-pysam
 Vcs-Git: https://salsa.debian.org/med-team/python-pysam.git
 Homepage: http://pysam.readthedocs.org/en/latest
 
+Package: python-pysam
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends}
+Provides: ${python:Provides}
+Description: interface for the SAM/BAM sequence alignment and mapping format (Python 2)
+ Pysam is a Python module for reading and manipulating Samfiles. It's a
+ lightweight wrapper of the samtools C-API. Pysam also includes an interface
+ for tabix.
+ .
+ This package installs the module for Python 2.
+
 Package: python3-pysam
 Architecture: any
 Depends: ${shlibs:Depends},
diff --git a/debian/python-pysam.links b/debian/python-pysam.links
new file mode 100755 (executable)
index 0000000..8cc3b2c
--- /dev/null
@@ -0,0 +1,4 @@
+#!/usr/bin/dh-exec
+/usr/lib/python2.7/dist-packages/pysam/libcsamtools.${DEB_HOST_GNU_TYPE}.so /usr/lib/python2.7/dist-packages/pysam/libcsamtools.so
+/usr/lib/python2.7/dist-packages/pysam/libcbcftools.${DEB_HOST_GNU_TYPE}.so /usr/lib/python2.7/dist-packages/pysam/libcbcftools.so
+/usr/lib/python2.7/dist-packages/pysam/libchtslib.${DEB_HOST_GNU_TYPE}.so /usr/lib/python2.7/dist-packages/pysam/libchtslib.so
diff --git a/debian/python-pysam.lintian-overrides b/debian/python-pysam.lintian-overrides
new file mode 100644 (file)
index 0000000..785680d
--- /dev/null
@@ -0,0 +1,4 @@
+# These are apparently false-positives
+# Inspection of the build logs shows that these are indeed compiled with
+# -D_FORTIFY_SOURCE=2
+hardening-no-fortify-functions usr/lib/python2.7/dist-packages/pysam/lib*.so
index 38b8c725ed8ff542d7b9d27a40eb9bd5e535900d..091888ff37edee089a51638b4283ee7cd5801cc4 100755 (executable)
@@ -21,7 +21,7 @@ export HTSLIB_INCLUDE_DIR=/usr/include
 
 clean: clean-tests
 %:
-       dh $@ --with python3 --buildsystem=pybuild
+       dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_install: clean-tests
        dh_install -Xtest.gtf.gz