summaryrefslogtreecommitdiff
path: root/community/python-psutil/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-11 03:52:51 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-11 03:52:51 +0000
commit345769552026b46d72b7318f1efa6d615ce03ee3 (patch)
tree765f8ab1a83d1b71727938ea97f507fab3a039ff /community/python-psutil/PKGBUILD
parentb7ad9e746ae50cb940e3ea21772049f46f7b2c0f (diff)
Tue Mar 11 03:48:52 UTC 2014
Diffstat (limited to 'community/python-psutil/PKGBUILD')
-rw-r--r--community/python-psutil/PKGBUILD25
1 files changed, 22 insertions, 3 deletions
diff --git a/community/python-psutil/PKGBUILD b/community/python-psutil/PKGBUILD
index 498ef4296..e94c1200a 100644
--- a/community/python-psutil/PKGBUILD
+++ b/community/python-psutil/PKGBUILD
@@ -1,25 +1,44 @@
-# $Id: PKGBUILD 102223 2013-12-06 21:38:55Z seblu $
+# $Id: PKGBUILD 106955 2014-03-10 22:28:38Z seblu $
# Maintainer: Sébastien Luttringer
pkgbase=python-psutil
pkgname=('python-psutil' 'python2-psutil')
-pkgver=1.2.1
+pkgver=2.0.0
pkgrel=1
arch=('i686' 'x86_64')
url='http://code.google.com/p/psutil/'
license=('custom: BSD')
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
+checkdepends=('net-tools' 'procps-ng')
source=("https://pypi.python.org/packages/source/p/psutil/psutil-$pkgver.tar.gz")
-md5sums=('80c3b251389771ab472e554e6c729c36')
+md5sums=('9ee83ff3d68396f91ebdf71ae83b152d')
build() {
cd psutil-$pkgver
+
+ msg2 python
python setup.py build --build-lib=build/python
+
+ msg2 python2
python2 setup.py build --build-lib=build/python2
find build/python2 -type f -exec \
sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
}
+check() {
+ cd psutil-$pkgver
+
+ msg2 python
+ export PYTHONPATH="$PWD/build/python"
+ #python test/test_psutil.py
+ python test/test_memory_leaks.py
+
+ msg2 python2
+ export PYTHONPATH="$PWD/build/python2"
+ #python2 test/test_psutil.py
+ python2 test/test_memory_leaks.py
+}
+
package_python-psutil() {
pkgdesc='A cross-platform process and system utilities module for Python'
depends=('glibc' 'python')