[Python-modules-team] Bug#636526: python-psutil: Patch to support Python3.

Matthew Grant matthewgrant5 at gmail.com
Fri Jun 1 02:40:59 UTC 2012


Package: python-psutil
Version: 0.4.1-1
Followup-For: Bug #636526

Dear Maintainer,
   
We have some internal work Python 3 packages that would like to deploy
on Wheezy, and we depend on your package.

The attached patch also closes Bug #637382, as dh_python2 and 
dhpython3 are required to effect the Python3 build.  In doing the guides on the Debian wiki:

http://wiki.debian.org/Python/TransitionToDHPython2

and

http://wiki.debian.org/Python/LibraryStyleGuide

were followed.

debian/rules was carefully merged with the example in the LibraryStyleGuide,
debian/control updated. 

Please note that your test code in debian rules was very carefully moved 
and made compatible  with the LibraryStyleGuide, and has had the filter 
'nocheck ' for DEB BUILD OPTIONS added.  In the default build, all the tests
still run.  The print statement you used to get the python $LIB has had
parenthesis added for Python3, and I checked the LIB statement was backwards
compatible on python2.6 and python2.7

I did note the test_get_io_counters failure on all 3 versions of Python,
and this maybe due to moving to the 3.2 kernel.  The Python3.2 test test_name
failed due to the underlying python binary being 'python3.2mu' instead of 
'python3.2' but these are definitely seperate bugs to the build bugs.

This also creates a python-psutil-doc package, and Recommends it to the
different library package.  Lintian was giving issues about clashes in the 
docs and this seems to be the best way of resolving it. There are two lintian
warnings:

W: python-psutil: hardening-no-relro usr/lib/python2.6/dist-packages/_psutil_linux.so
W: python-psutil: hardening-no-relro usr/lib/python2.6/dist-packages/_psutil_posix.so

but these look like they were already there before this patch.  I can 

Please look this over and get back to me. Could we collaborate on this please?

This patch contains almost all the work that needs to be done.  If you like, 
I can branch the svn archive, and you can edit this work so that you are 
happy with it.

It would be good to get it in for wheezy.

Cheers,

Matthew Grant, DD since before 2005

*** End of the template - remove these lines ***


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python-psutil-python3-2.diff
Type: text/x-diff
Size: 7262 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20120601/4bcaaa2c/attachment.diff>


More information about the Python-modules-team mailing list