starting to implement python 3 support
authorJorge Soares <j.s.soares@gmail.com>
Wed, 26 Nov 2014 10:56:08 +0000 (10:56 +0000)
committerJorge Soares <j.s.soares@gmail.com>
Wed, 26 Nov 2014 10:56:08 +0000 (10:56 +0000)
debian/control
debian/rules

index 421636e95e40f66c25a340691f9fe9477eae9849..14f7647c264104b242d2fc688ffbfbd99dea456d 100644 (file)
@@ -6,10 +6,14 @@ Section: python
 XS-Testsuite: autopkgtest
 Priority: optional
 Build-Depends: debhelper (>= 9),
-               dh-python,
-               python-all-dev,
-               python-setuptools,
-               cython,
+              dh-python,
+              python-all-dev,
+              python-setuptools,
+              cython,
+              dh-python3,
+              python3-all-dev,
+              python3-setuptools,
+              cython3,
                zlib1g-dev,
                samtools (>= 0.1.19),
                libhts-dev
@@ -24,11 +28,20 @@ Architecture: any
 Depends: ${shlibs:Depends},
          ${misc:Depends},
          ${python:Depends},
-         python-pyrex
 Description: interface for the SAM/BAM sequence alignment and mapping format
  Pysam is a Python module for reading and manipulating Samfiles. It's a
  lightweight wrapper of the samtools C-API. 
 
+Package: python3-pysam
+Architecture: any
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python3:Depends},
+Description: interface for the SAM/BAM sequence alignment and mapping format
+ Pysam is a Python module for reading and manipulating Samfiles. It's a
+ lightweight wrapper of the samtools C-API. 
+
+
 Package: python-pysam-tests
 Architecture: all
 Priority: extra
@@ -45,3 +58,20 @@ Description: interface for the SAM/BAM sequence alignment and mapping format (te
  .
  This package contains the data provided by upstream to run the pysam
  test suite.
+
+Package: python3-pysam-tests
+Architecture: all
+Priority: extra
+Enhances: python3-pysam
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python3:Depends},
+         python3,
+         python3-pysam,
+        cython3
+Description: interface for the SAM/BAM sequence alignment and mapping format (test data)
+ Pysam is a Python module for reading and manipulating Samfiles. It's a
+ lightweight wrapper of the samtools C-API. 
+ .
+ This package contains the data provided by upstream to run the pysam
+ test suite.
index b9439ae88d3d71591ab55460356a7ce337c56fc6..550e77223a0c1acbbf89755fe42432359a6ac8fb 100755 (executable)
@@ -10,7 +10,7 @@ HTSLIBDIR  := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 # DEB_BUILD_OPTIONS := nocheck
 
 %:
-       dh $@ --with python2 --buildsystem=pybuild
+       dh $@ --with python2,python3 --buildsystem=pybuild
 
 # Make sure Cython is recreating some c-files.  To enable building twice in a
 # row these will be saved in advance and restored afterwards