Package: python-psutil
Version: 0.4.1-1
Severity: normal
User: debian-h...@lists.debian.org
Usertags: hurd
Tags: patch

Hi,

Currently python-psutil fails to build on Debian GNU/Hurd. (Doesn't recognize 
gnu system).

Attached is a patch for building on Hurd.

Thank you,

Barry deFreese
Index: python-psutil-0.4.1/setup.py
===================================================================
--- python-psutil-0.4.1.orig/setup.py   2011-12-14 22:18:27.000000000 +0000
+++ python-psutil-0.4.1/setup.py        2012-06-06 21:44:59.000000000 +0000
@@ -72,6 +72,12 @@
                             sources=['psutil/_psutil_linux.c'],
                             ),
                   posix_extension]
+# GNU
+elif sys.platform.lower().startswith("gnu"):
+    extensions = [Extension('_psutil_posix',
+                            sources=['psutil/_psutil_posix.c'],
+                            ),
+                  posix_extension]
 else:
     raise NotImplementedError('platform %s is not supported' % sys.platform)
 

Reply via email to