[Python-modules-commits] r19981 - in packages/python-levenshtein/trunk/debian (3 files)

morph at users.alioth.debian.org morph at users.alioth.debian.org
Tue Jan 10 17:58:12 UTC 2012


    Date: Tuesday, January 10, 2012 @ 17:58:11
  Author: morph
Revision: 19981

build debug extension

Modified:
  packages/python-levenshtein/trunk/debian/changelog
  packages/python-levenshtein/trunk/debian/control
  packages/python-levenshtein/trunk/debian/rules

Modified: packages/python-levenshtein/trunk/debian/changelog
===================================================================
--- packages/python-levenshtein/trunk/debian/changelog	2012-01-10 17:32:23 UTC (rev 19980)
+++ packages/python-levenshtein/trunk/debian/changelog	2012-01-10 17:58:11 UTC (rev 19981)
@@ -12,11 +12,12 @@
   * Switch to 3.0 (quilt) source format
   * debian/{control, rules}
     - use python-support instead of python-central; Closes: #617011
+    - build debug extension
   * Switch to short debian/rules file format
   * debian/watch
     - remove template header
 
- -- Sandro Tosi <morph at debian.org>  Tue, 10 Jan 2012 18:30:21 +0100
+ -- Sandro Tosi <morph at debian.org>  Tue, 10 Jan 2012 18:56:08 +0100
 
 python-levenshtein (0.10.1-1.1) unstable; urgency=low
 

Modified: packages/python-levenshtein/trunk/debian/control
===================================================================
--- packages/python-levenshtein/trunk/debian/control	2012-01-10 17:32:23 UTC (rev 19980)
+++ packages/python-levenshtein/trunk/debian/control	2012-01-10 17:58:11 UTC (rev 19981)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: python-all-dev (>= 2.5.3-1~), python-support (>= 1), debhelper (>= 7.0.50~)
+Build-Depends: python-all-dev (>= 2.5.3-1~), python-all-dbg, python-support (>= 1), debhelper (>= 7.0.50~)
 X-Python-Version: all
 Standards-Version: 3.9.2
 Homepage: http://translate.sourceforge.net/wiki/toolkit/levenshtein_distance
@@ -24,3 +24,22 @@
  another.
  .
  It is useful for spell checking, or fuzzy matching of gettext messages.
+
+Package: python-levenshtein-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: python-levenshtein (= ${binary:Version}), ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
+Description: extension for computing string similarities and edit distances(debug extension)
+ The Levenshtein module computes Levenshtein distances, similarity ratios,
+ generalized medians and set medians of Unicode or non-Unicode strings.
+ Because it's implemented in C, it's much faster than the corresponding
+ Python library functions and methods.
+ .
+ The Levenshtein distance is the minimum number of single-character
+ insertions, deletions, and substitutions to transform one string into
+ another.
+ .
+ It is useful for spell checking, or fuzzy matching of gettext messages.
+ .
+ This package contains the extensions built for the Python debug interpreter.

Modified: packages/python-levenshtein/trunk/debian/rules
===================================================================
--- packages/python-levenshtein/trunk/debian/rules	2012-01-10 17:32:23 UTC (rev 19980)
+++ packages/python-levenshtein/trunk/debian/rules	2012-01-10 17:58:11 UTC (rev 19981)
@@ -11,6 +11,7 @@
 	set -e ; \
 	for py in $(PYVERS); do \
 		python$$py setup.py build ; \
+		python$$py-dbg setup.py build ; \
 	done
 	# build doc
 	PYTHONPATH=$(PYLIBPATH) ./gendoc.sh Levenshtein
@@ -23,6 +24,7 @@
 	set -e ; \
 	for py in $(PYVERS); do \
 		python$$py setup.py install --root $(CURDIR)/debian/python-levenshtein --install-layout=deb ; \
+		python$$py-dbg setup.py install --root $(CURDIR)/debian/python-levenshtein-dbg --install-layout=deb ; \
 	done
 
 override_dh_installdocs:
@@ -30,3 +32,10 @@
 
 override_dh_installexamples:
 	dh_installexamples StringMatcher.py
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip --dbg-package=python-levenshtein-dbg
+	# fix python-debug-in-wrong-location lintian warning
+	cd debian/*-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
+endif




More information about the Python-modules-commits mailing list