[Python-apps-team] Bug#677405: cython: switch to dh_python2

Julian Taylor jtaylor.debian at googlemail.com
Wed Jun 13 17:05:36 UTC 2012


Package: cython
Version: 0.15.1-2
Severity: wishlist
Tags: patch

python-support is now officially deprecated in Debian:

http://article.gmane.org/gmane.linux.debian.devel.python/6948

Attached is a patch which converts cython to use the recommended dh_python2.
It follows this guide:
http://wiki.debian.org/Python/TransitionToDHPython2

tested the imports and via builds with good testsuite pyzmq and pandas.
-------------- next part --------------
diff -Nru cython-0.15.1/debian/control cython-0.15.1/debian/control
--- cython-0.15.1/debian/control	2012-01-07 18:33:40.000000000 +0100
+++ cython-0.15.1/debian/control	2012-06-12 22:48:50.000000000 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
 Uploaders: Ondrej Certik <ondrej at certik.cz>, Yaroslav Halchenko <debian at onerussian.com>
-Build-Depends: cdbs (>= 0.4.49), debhelper (>= 5.0.38), python (>= 2.4.4-6), python-all-dev (>= 2.4.4-6), python-support (>= 0.7.5), python-all-dbg, help2man (>= 1.37.1~), python-numpy
+Build-Depends: cdbs (>= 0.4.90~), debhelper (>= 5.0.38), python (>= 2.6.6-3~), python-all-dev (>= 2.6.6-3~), python-all-dbg (>= 2.6.6-3~), help2man (>= 1.37.1~), python-numpy
 Standards-Version: 3.9.2
 Homepage: http://cython.org/
 Vcs-Svn: svn://svn.debian.org/svn/python-apps/packages/cython/trunk
@@ -14,7 +14,6 @@
 Architecture: any
 Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}
 Suggests: python-dev, gcc
-XB-Python-Version: ${python:Versions}
 Description: C-Extensions for Python
  Cython is a language that makes writing C extensions for the Python language as
  easy as Python itself. Cython is based on the well-known Pyrex, but supports
@@ -34,7 +33,6 @@
 Priority: extra
 Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, cython (= ${binary:Version})
 Suggests: gcc
-XB-Python-Version: ${python:Versions}
 Description: C-Extensions for Python (Debug Build of Cython)
  This package contains Cython libraries built against versions of
  Python configured with --pydebug.
diff -Nru cython-0.15.1/debian/rules cython-0.15.1/debian/rules
--- cython-0.15.1/debian/rules	2012-01-07 18:33:40.000000000 +0100
+++ cython-0.15.1/debian/rules	2012-06-12 22:49:53.000000000 +0200
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-DEB_PYTHON_SYSTEM=pysupport
+DEB_PYTHON2_MODULE_PACKAGES=cython cython-dbg
 
 #  Apparently WGET agent is not favored by upstream's MoinMoin
 WGET_AGENT_STRING="Lynx/2.8.8dev.4 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/2.8.6"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20120613/cba43fcd/attachment-0001.pgp>


More information about the Python-apps-team mailing list