python/stopit: Updated for version 1.1.2.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
fd684dd68b
commit
62499a2187
|
@ -1,2 +1,6 @@
|
|||
Raise asynchronous exceptions in other threads, control the timeout of
|
||||
blocks or callables with two context managers and two decorators.
|
||||
The stopit python module provides the user with a function that raises an
|
||||
exception in another thread, including the main thread. It also provides two
|
||||
context managers that may stop its inner block activity on timeout and two
|
||||
decorators that may stop its decorated callables on timeout.
|
||||
|
||||
This SlackBuild will build with Python 3 support if it is installed.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for stopit
|
||||
|
||||
# Copyright 2015 Brenton Earl <brent@exitstatusone.com>
|
||||
# Copyright 2015, 2018 Brenton Earl <brent@exitstatusone.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,13 +23,13 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=stopit
|
||||
VERSION=${VERSION:-1.1.1}
|
||||
VERSION=${VERSION:-1.1.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
|
@ -40,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
|
@ -71,11 +71,16 @@ find -L . \
|
|||
|
||||
python setup.py install --root=$PKG
|
||||
|
||||
# Python 3 support.
|
||||
if $(python3 -c 'import sys' 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 CHANGES.rst PKG-INFO README.rst $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CHANGES* README* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="stopit"
|
||||
VERSION="1.1.1"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/stopit"
|
||||
DOWNLOAD="https://pypi.python.org/packages/source/s/stopit/stopit-1.1.1.tar.gz"
|
||||
MD5SUM="dec60dae41bec73233e83db003390bdc"
|
||||
VERSION="1.1.2"
|
||||
HOMEPAGE="https://github.com/glenfant/stopit"
|
||||
DOWNLOAD="https://github.com/glenfant/stopit/archive/1.1.2/stopit-1.1.2.tar.gz"
|
||||
MD5SUM="9849a16ffd377ade4ade2d0ba0978500"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in New Issue