diff --git a/python/psutil/README b/python/psutil/README index b7548981e3..a8cbc03c9e 100644 --- a/python/psutil/README +++ b/python/psutil/README @@ -3,3 +3,5 @@ running processes and system utilization (CPU, memory, disks, network, users) in a portable way by using Python, implementing many functionalities offered by command line tools such as: ps, top, df, kill, free, lsof, netstat, ifconfig, nice, ionice, iostat, iotop, uptime, pidof, tty, who, taskset, and pmap. + +Optional dependencies are pysetuptools and python3. diff --git a/python/psutil/psutil.SlackBuild b/python/psutil/psutil.SlackBuild index 659e0ef08a..2c673d0220 100644 --- a/python/psutil/psutil.SlackBuild +++ b/python/psutil/psutil.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=psutil -VERSION=${VERSION:-0.7.1} +VERSION=${VERSION:-1.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -57,12 +57,16 @@ find . \ python setup.py install --root=$PKG +if $(python3 -c 'import os' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - CREDITS HISTORY LICENSE MANIFEST.in PKG-INFO README \ + CREDITS HISTORY LICENSE MANIFEST.in PKG-INFO README TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/python/psutil/psutil.info b/python/psutil/psutil.info index eda316d15d..787c94079a 100644 --- a/python/psutil/psutil.info +++ b/python/psutil/psutil.info @@ -1,10 +1,10 @@ PRGNAM="psutil" -VERSION="0.7.1" +VERSION="1.0.1" HOMEPAGE="http://code.google.com/p/psutil/" -DOWNLOAD="http://psutil.googlecode.com/files/psutil-0.7.1.tar.gz" -MD5SUM="ad7bcd473cd2a64763ed8286e279d3d7" +DOWNLOAD="http://psutil.googlecode.com/files/psutil-1.0.1.tar.gz" +MD5SUM="c85e29db7d6d716761eb2b105b9fb177" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="distribute" +REQUIRES="" MAINTAINER="Larry Hajali" EMAIL="larryhaja[at]gmail[dot]com"