Hi again, Here is another patch that I could use some help with. I was essentially trying to cheat by just using the posix files. It does allow the package to build, however it fails the test suites because _EXTRA_ALL isn't defined.
I was going to copy the _pslinux and _psutil_linux files to something like _psgnu and _psutil_gnu. However, the linux code relies a lot on /proc and uses /proc/cpuinfo which we don't have. The other option would be to try to use the _psbsd and _psutil_bsd files. I am open to suggestions or help.. Thanks! Barry deFreese
Index: python-psutil-0.4.1/setup.py =================================================================== --- python-psutil-0.4.1.orig/setup.py 2012-06-10 10:24:51.000000000 +0000 +++ python-psutil-0.4.1/setup.py 2012-06-10 10:35:34.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) Index: python-psutil-0.4.1/psutil/__init__.py =================================================================== --- python-psutil-0.4.1.orig/psutil/__init__.py 2012-06-10 10:24:51.000000000 +0000 +++ python-psutil-0.4.1/psutil/__init__.py 2012-06-10 10:36:46.000000000 +0000 @@ -79,6 +79,9 @@ elif sys.platform.lower().startswith("freebsd"): import psutil._psbsd as _psplatform +elif sys.platform.lower().startswith("gnu"): + import psutil._psposix as _psplatform + else: raise NotImplementedError('platform %s is not supported' % sys.platform)