Hi Frederic, hi package maintainers, please find attached a patch to provide the requested feature (a -dbg package).
The patch also switches form cdbs to dh8 sequencer that allows to have out of the box -dbg support for python packages. best regards -- Antonio Valentino
>From 5bef18fe5ca09e39f594eb94eaa60712596e0a3d Mon Sep 17 00:00:00 2001 From: Antonio Valentino <antonio.valent...@tiscali.it> Date: Sun, 29 Jan 2012 13:05:09 +0100 Subject: [PATCH] Provide -dbg package --- debian/changelog | 7 +++++++ debian/compat | 2 +- debian/control | 25 ++++++++++++++++++++++--- debian/rules | 25 ++++++++++++------------- 4 files changed, 42 insertions(+), 17 deletions(-) diff --git a/debian/changelog b/debian/changelog index 15c73fa..9492b04 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +numexpr (1.4.2-2) unstable; urgency=low + + * Switch to dh8 (dropped cdbs) + * New -dbg package (Closes: #657733) + + -- Antonio Valentino <antonio.valent...@tiscali.it> Sun, 29 Jan 2012 12:50:36 +0100 + numexpr (1.4.2-1.2) unstable; urgency=low * Non-maintainer upload. diff --git a/debian/compat b/debian/compat index 7ed6ff8..45a4fb7 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -5 +8 diff --git a/debian/control b/debian/control index 4db822c..88b3145 100644 --- a/debian/control +++ b/debian/control @@ -2,9 +2,9 @@ Source: numexpr Section: python Priority: optional Maintainer: Wen Heping <wenhep...@gmail.com> -Build-Depends: debhelper (>= 5.0.37.2), - cdbs (>= 0.4.43), +Build-Depends: debhelper (>= 8.1.0~), python-all-dev (>= 2.3.5-11), + python-all-dbg (>= 2.3.5-11), python-support (>= 0.90), python-setuptools (>= 0.6b3), python-numpy (>= 1.3.1) @@ -21,4 +21,23 @@ Description: Numexpr package evaluates multiple-operator array expressions analyzes it, rewrites it more efficiently, and compiles it to faster Python code on the fly. It's the next best thing to writing the expression in C and compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not - require a compiler at runtime. + require a compiler at runtime. + +Package: python-numexpr-dbg +Section: debug +Priority: extra +Architecture: any +Depends: ${python:Depends}, + ${shlibs:Depends}, + ${misc:Depends}, + python-numexpr (= ${binary:Version}) +Recommends: python-dbg, python-numpy-dbg (>= 1.3.1) +Description: Numexpr package evaluates multiple-operator array expressions + many times faster than NumPy can. It accepts the expression as a string, + analyzes it, rewrites it more efficiently, and compiles it to faster Python + code on the fly. It's the next best thing to writing the expression in C and + compiling it with a specialized just-in-time (JIT) compiler, i.e. it does not + require a compiler at runtime. + . + This package contains the extension built for the Python debug interpreter. + diff --git a/debian/rules b/debian/rules index 85a20fa..9a3092a 100755 --- a/debian/rules +++ b/debian/rules @@ -4,22 +4,21 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -DEB_PYTHON_SYSTEM=pysupport -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/python-distutils.mk +%: + dh $@ --with python2 --buildsystem=python_distutils -# Prepare support for python 3.x (need to add Build-Depends against -# python3-all-dev in debian/control). -# cdbs_python_supported_versions += $(shell dpkg-query -W -f='$${Depends}' python3-all-dev | sed 's/.*python\(3\.[0-9]\)-dev.*/\1/') -# Install egg-info directories -DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed +override_dh_install: + # Install everything excluding the *_d.so debug extensions to python-numexpr + dh_install -X"*_d.so" "debian/tmp/*" -p python-numexpr -install/$(DEB_PYTHON_MODULE_PACKAGES):: - sed -i 's#\#!/usr/bin/python[0-9].[0-9]#\#!/usr/bin/python#' \ - $(cdbs_python_destdir)usr/bin/* -# rm -f $(cdbs_python_destdir)usr/share/doc/python-numexpr/LICENSE.txt + # Install the debug extensions to python-numexpr-dbg + dh_install "debian/tmp/usr/lib/python*/*-packages/numexpr/*_d.so" -p python-numexpr-dbg -install/python-numexpr:: + # Continue with regular dh_install + dh_install dh_numpy + + +.PHONY: dh_auto_install -- 1.7.5.4