diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-18 07:46:07 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-18 07:46:25 +0700 |
commit | 9c6a37b786aed8b6f92b83c69db066a9e0b17fa2 (patch) | |
tree | 64a0720f49406fe8218c4c0a57d1404d6600b421 /python | |
parent | 1decfa691ae89bc47e8f2705f8d67d8db8b33fbf (diff) | |
download | slackbuilds-9c6a37b786aed8b6f92b83c69db066a9e0b17fa2.tar.gz |
python/pyrfc3339: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/pyrfc3339/pyrfc3339.SlackBuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/python/pyrfc3339/pyrfc3339.SlackBuild b/python/pyrfc3339/pyrfc3339.SlackBuild index f3b5be8ba0..ef2db5f5f7 100644 --- a/python/pyrfc3339/pyrfc3339.SlackBuild +++ b/python/pyrfc3339/pyrfc3339.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for pyrfc3339 -# Copyright 2015-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2015-2020 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -55,7 +55,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -72,6 +72,11 @@ 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 |