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

morph at users.alioth.debian.org morph at users.alioth.debian.org
Tue Aug 28 19:23:40 UTC 2012


    Date: Tuesday, August 28, 2012 @ 19:23:38
  Author: morph
Revision: 22597

* debian/{control, rules}
  - provide Python 3 package; Closes: #636526

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	2012-08-28 18:35:10 UTC (rev 22596)
+++ packages/python-psutil/trunk/debian/changelog	2012-08-28 19:23:38 UTC (rev 22597)
@@ -2,8 +2,10 @@
 
   * debian/rules
     - refactor build and test targets
+  * debian/{control, rules}
+    - provide Python 3 package; Closes: #636526
 
- -- Sandro Tosi <morph at debian.org>  Tue, 28 Aug 2012 20:34:54 +0200
+ -- Sandro Tosi <morph at debian.org>  Tue, 28 Aug 2012 21:22:55 +0200
 
 python-psutil (0.6.1-1) experimental; urgency=low
 

Modified: packages/python-psutil/trunk/debian/control
===================================================================
--- packages/python-psutil/trunk/debian/control	2012-08-28 18:35:10 UTC (rev 22596)
+++ packages/python-psutil/trunk/debian/control	2012-08-28 19:23:38 UTC (rev 22597)
@@ -3,9 +3,10 @@
 Priority: optional
 Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
 Uploaders: Sandro Tosi <morph at debian.org>
-Build-Depends: debhelper (>= 7.2.18), python-all-dev, python-support (>= 1.0.0), procps
+Build-Depends: debhelper (>= 7.2.18), python-all-dev, python3-all-dev, python-support (>= 1.0.0), procps
 Standards-Version: 3.9.3
 XS-Python-Version: all
+X-Python3-Version: >= 3.2
 Homepage: http://code.google.com/p/psutil/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-psutil/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-psutil/trunk/
@@ -20,3 +21,16 @@
  ps, top and Windows task manager.
  .
  It currently supports Linux, OS X, FreeBSD and Windows.
+
+Package: python3-psutil
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
+Description: module providing convenience functions for managing processes (Python3)
+ 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 Python 3 version of psutil.

Modified: packages/python-psutil/trunk/debian/rules
===================================================================
--- packages/python-psutil/trunk/debian/rules	2012-08-28 18:35:10 UTC (rev 22596)
+++ packages/python-psutil/trunk/debian/rules	2012-08-28 19:23:38 UTC (rev 22597)
@@ -1,24 +1,40 @@
 #!/usr/bin/make -f
 
-PYVERS:=$(shell pyversions -s)
+PY2VERS := $(shell pyversions -s)
+PY3VERS := $(shell py3versions -s)
 
 export CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
 export CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
 export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
 
 %:
-	dh $@
+	dh $@ --with python3
 
+override_dh_auto_install:
+	set -e ; \
+	for python in $(PY2VERS); do \
+		$$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python-psutil; \
+	done
+	set -e ; \
+	for python in $(PY3VERS); do \
+		$$python setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-psutil; \
+	done
+
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 	# run tests
 	-for test in test_memory_leaks.py test_psutil.py ;\
 	do \
-	    for python in $(PYVERS) ; do \
+	    for python in $(PY2VERS) ; 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 \
+	    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
 




More information about the Python-modules-commits mailing list