python/ruffus: Convert to python3

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
brobr 2021-10-15 11:57:14 +01:00 committed by Willy Sudiarto Raharjo
parent a0d85d03c0
commit ceafa2e6cd
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -2,7 +2,7 @@
# Slackware build script for ruffus
# Copyright 2018-2019 Rob van Nues
# Copyright 2018-2021 Rob van Nues
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -30,10 +30,6 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
#set which python version to install it for
PYTHON2=false
PYTHON3=true
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@ -83,12 +79,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
if $PYTHON2; then
python setup.py install --root=$PKG
fi
if $PYTHON3; then
python3 setup.py install --root=$PKG
fi
python3 setup.py install --root=$PKG
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