SF.net SVN: gar:[25338] csw/mgar/pkg/lang-python

janholzh at users.sourceforge.net janholzh at users.sourceforge.net
Mon Nov 2 11:38:21 CET 2015


Revision: 25338
          http://sourceforge.net/p/gar/code/25338
Author:   janholzh
Date:     2015-11-02 10:38:21 +0000 (Mon, 02 Nov 2015)
Log Message:
-----------
lang-python/psutil/trunk: add py_psutil

Added Paths:
-----------
    csw/mgar/pkg/lang-python/psutil/
    csw/mgar/pkg/lang-python/psutil/Makefile
    csw/mgar/pkg/lang-python/psutil/branches/
    csw/mgar/pkg/lang-python/psutil/tags/
    csw/mgar/pkg/lang-python/psutil/trunk/
    csw/mgar/pkg/lang-python/psutil/trunk/Makefile
    csw/mgar/pkg/lang-python/psutil/trunk/checksums
    csw/mgar/pkg/lang-python/psutil/trunk/files/
    csw/mgar/pkg/lang-python/psutil/trunk/files/fix_solaris_build.patch

Added: csw/mgar/pkg/lang-python/psutil/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/psutil/Makefile	                        (rev 0)
+++ csw/mgar/pkg/lang-python/psutil/Makefile	2015-11-02 10:38:21 UTC (rev 25338)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*

Index: csw/mgar/pkg/lang-python/psutil/trunk
===================================================================
--- csw/mgar/pkg/lang-python/psutil/trunk	2015-11-02 10:07:39 UTC (rev 25337)
+++ csw/mgar/pkg/lang-python/psutil/trunk	2015-11-02 10:38:21 UTC (rev 25338)

Property changes on: csw/mgar/pkg/lang-python/psutil/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/lang-python/psutil/trunk/Makefile
===================================================================
--- csw/mgar/pkg/lang-python/psutil/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/lang-python/psutil/trunk/Makefile	2015-11-02 10:38:21 UTC (rev 25338)
@@ -0,0 +1,32 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+
+NAME = psutil
+VERSION = 3.2.2
+GARTYPE = v2
+CATEGORIES = python
+
+define BLURB
+psutil is a cross-platform library for retrieving information onrunning processes and system utilization (CPU,memory, disks, network)in Python. 
+endef
+
+
+MASTER_SITES += $(PYPI_MIRROR)
+DISTFILES += $(DISTNAME).tar.gz
+
+# This is a new package, don't bother building for 2.6 some deps are 2.7 only anyway
+#MODULATIONS_PYTHON_VERSION = 2_7
+
+PATCHFILES += fix_solaris_build.patch
+
+PACKAGES += CSWpy-psutil
+SPKG_DESC_CSWpy-psutil = Psutil is a library for retrieving information onrunning processes
+# PKGFILES is catchall
+
+RUNTIME_DEP_PKGS_CSWpy-psutil += CSWlibpython2-7-1-0
+RUNTIME_DEP_PKGS_CSWpy-psutil += CSWlibpython2-6-1-0
+RUNTIME_DEP_PKGS_CSWpy-psutil += CSWlibgcc-s1
+
+
+include gar/category.mk


Property changes on: csw/mgar/pkg/lang-python/psutil/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/lang-python/psutil/trunk/checksums
===================================================================
--- csw/mgar/pkg/lang-python/psutil/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/lang-python/psutil/trunk/checksums	2015-11-02 10:38:21 UTC (rev 25338)
@@ -0,0 +1 @@
+56df1727c9e26076a80da4c3f8f67976  psutil-3.2.2.tar.gz

Added: csw/mgar/pkg/lang-python/psutil/trunk/files/fix_solaris_build.patch
===================================================================
--- csw/mgar/pkg/lang-python/psutil/trunk/files/fix_solaris_build.patch	                        (rev 0)
+++ csw/mgar/pkg/lang-python/psutil/trunk/files/fix_solaris_build.patch	2015-11-02 10:38:21 UTC (rev 25338)
@@ -0,0 +1,61 @@
+From f89aec2e56e1e1e503a6292850048bbea6de31a1 Mon Sep 17 00:00:00 2001
+From: bsebi <sebastianbrestin at gmail.com>
+Date: Wed, 28 Oct 2015 18:50:41 +0200
+Subject: [PATCH] #704: psutil does not compile/cannot be imported on solaris
+ sparc
+
+---
+ CREDITS                | 5 +++++
+ psutil/__init__.py     | 2 +-
+ psutil/_psutil_posix.c | 2 +-
+ setup.py               | 4 ++--
+ 5 files changed, 17 insertions(+), 4 deletions(-)
+
+diff --git a/psutil/__init__.py b/psutil/__init__.py
+index 1a75a9f..2343391 100644
+--- a/psutil/__init__.py
++++ b/psutil/__init__.py
+@@ -121,7 +121,7 @@
+ elif sys.platform.startswith("freebsd"):
+     from . import _psbsd as _psplatform
+ 
+-elif sys.platform.startswith("sunos"):
++elif sys.platform.startswith("sunos") or sys.platform.startswith("solaris"):
+     from . import _pssunos as _psplatform
+     from ._pssunos import (CONN_IDLE,  # NOQA
+                            CONN_BOUND)
+diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c
+index 1e27cdb..1dfbcf4 100644
+--- a/psutil/_psutil_posix.c
++++ b/psutil/_psutil_posix.c
+@@ -16,7 +16,7 @@
+ #include <net/if.h>
+ 
+ #ifdef PSUTIL_SUNOS10
+-#include "arch/solaris10/ifaddrs.h"
++#include "arch/solaris/v10/ifaddrs.h"
+ #else
+ #include <ifaddrs.h>
+ #endif
+diff --git a/setup.py b/setup.py
+index 3cb2dd6..8ff41d3 100644
+--- a/setup.py
++++ b/setup.py
+@@ -71,7 +71,7 @@ def write(self, s):
+     posix_extension = Extension(
+         'psutil._psutil_posix',
+         sources=['psutil/_psutil_posix.c'])
+-    if sys.platform.startswith("sunos"):
++    if sys.platform.startswith("sunos") or sys.platform.startswith("solaris"):
+         posix_extension.libraries.append('socket')
+         if platform.release() == '5.10':
+             posix_extension.sources.append('psutil/arch/solaris/v10/ifaddrs.c')
+@@ -175,7 +175,7 @@ def on_exit():
+         define_macros=macros)
+     extensions = [ext, posix_extension]
+ # Solaris
+-elif sys.platform.lower().startswith('sunos'):
++elif sys.platform.lower().startswith('sunos') or sys.platform.lower().startswith('solaris'):
+     ext = Extension(
+         'psutil._psutil_sunos',
+         sources=['psutil/_psutil_sunos.c'],

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list