mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
python/ruffus: Convert to python3
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
a0d85d03c0
commit
ceafa2e6cd
1 changed files with 2 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue