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

morph at users.alioth.debian.org morph at users.alioth.debian.org
Sun Feb 15 15:42:56 UTC 2015


    Date: Sunday, February 15, 2015 @ 15:42:55
  Author: morph
Revision: 31874

* debian/{control, rules}
  - provide -dbg packages

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

Modified: packages/python-psutil/trunk/debian/changelog
===================================================================
--- packages/python-psutil/trunk/debian/changelog	2015-02-15 15:20:02 UTC (rev 31873)
+++ packages/python-psutil/trunk/debian/changelog	2015-02-15 15:42:55 UTC (rev 31874)
@@ -1,3 +1,10 @@
+python-psutil (2.2.1-2) UNRELEASED; urgency=medium
+
+  * debian/{control, rules}
+    - provide -dbg packages
+
+ -- Sandro Tosi <morph at debian.org>  Sun, 15 Feb 2015 15:42:41 +0000
+
 python-psutil (2.2.1-1) experimental; urgency=medium
 
   * New upstream release

Modified: packages/python-psutil/trunk/debian/control
===================================================================
--- packages/python-psutil/trunk/debian/control	2015-02-15 15:20:02 UTC (rev 31873)
+++ packages/python-psutil/trunk/debian/control	2015-02-15 15:42:55 UTC (rev 31874)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Sandro Tosi <morph at debian.org>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.2.18), python-all-dev, python3-all-dev, dh-python, procps, python-sphinx (>= 1.0.7+dfsg)
+Build-Depends: debhelper (>= 7.2.18), python-all-dev, python3-all-dev, python-all-dbg, python3-all-dbg, dh-python, procps, python-sphinx (>= 1.0.7+dfsg)
 Standards-Version: 3.9.6
 XS-Python-Version: all
 X-Python3-Version: >= 3.2
@@ -22,6 +22,21 @@
  .
  It currently supports Linux, OS X, FreeBSD and Windows.
 
+Package: python-psutil-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, python-psutil (= ${binary:Version}), python-dbg, ${shlibs:Depends}
+Description: module providing convenience functions for managing processes (debug)
+ psutil is a module providing an interface for retrieving information on
+ running processes and system utilization (CPU, memory) in a portable way
+ by using Python, implementing many functionalities offered by tools like
+ ps, top and Windows task manager.
+ .
+ It currently supports Linux, OS X, FreeBSD and Windows.
+ .
+ This package contains the debug extension for python-psutil.
+
 Package: python3-psutil
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
@@ -34,3 +49,18 @@
  It currently supports Linux, OS X, FreeBSD and Windows.
  .
  This package contains the Python 3 version of psutil.
+
+Package: python3-psutil-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, python3-psutil (= ${binary:Version}), python3-dbg, ${shlibs:Depends}
+Description: module providing convenience functions for managing processes (Python3 debug)
+ psutil is a module providing an interface for retrieving information on
+ running processes and system utilization (CPU, memory) in a portable way
+ by using Python, implementing many functionalities offered by tools like
+ ps, top and Windows task manager.
+ .
+ It currently supports Linux, OS X, FreeBSD and Windows.
+ .
+ This package contains the debug extension for python3-psutil-.

Modified: packages/python-psutil/trunk/debian/rules
===================================================================
--- packages/python-psutil/trunk/debian/rules	2015-02-15 15:20:02 UTC (rev 31873)
+++ packages/python-psutil/trunk/debian/rules	2015-02-15 15:42:55 UTC (rev 31874)
@@ -21,10 +21,12 @@
 	set -e ; \
 	for python in $(PY2VERS); do \
 		$$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python-psutil; \
+		$$python-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/python-psutil-dbg; \
 	done
 	set -e ; \
 	for python in $(PY3VERS); do \
 		$$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-psutil; \
+		$$python-dbg setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-psutil-dbg; \
 	done
 
 override_dh_auto_test:
@@ -32,16 +34,14 @@
 	# run tests
 	-for test in test_memory_leaks.py test_psutil.py ;\
 	do \
-	    for python in $(PY2VERS) ; do \
+	    for python in $(PY2VERS) $(PY3VERS); do \
   	        echo "running "test/$$test" on "$$python ; \
-		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print b.build_platlib") ; \
-	        PYTHONPATH=$$LIB $$python test/$$test ; \
+		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)") ; \
+	        PYTHONPATH=$(CURDIR)/$$LIB $$python test/$$test ; \
+  	        echo "running "test/$$test" on "$$python-dbg ; \
+		LIB=$$($$python-dbg -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_platlib)") ; \
+	        PYTHONPATH=$(CURDIR)/$$LIB $$python-dbg test/$$test ; \
 	    done ; \
-	    for python in $(PY3VERS) ; do \
-  	        echo "running "test/$$test" on "$$python ; \
-		LIB=$$($$python -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print (b.build_platlib)") ; \
-	        PYTHONPATH=$$LIB $$python test/$$test ; \
-	    done ; \
 	done
 endif
 
@@ -54,3 +54,9 @@
 
 override_dh_compress:
 	dh_compress -X.py
+
+override_dh_strip:
+ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip -ppython-psutil --dbg-package=python-psutil-dbg
+	dh_strip -ppython3-psutil --dbg-package=python3-psutil-dbg
+endif




More information about the Python-modules-commits mailing list