diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-17 01:21:45 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-01-17 01:21:45 +0700 |
commit | aa29a76b8a82fbc6b8853749d1692aad12b34377 (patch) | |
tree | 9b98904739d0c0f0a235f88535cf438dc3335ece /python/Unidecode | |
parent | 24db4ef01e45f7e959853f746385b27874ab1a77 (diff) |
python/Unidecode: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/Unidecode')
-rw-r--r-- | python/Unidecode/Unidecode.SlackBuild | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/Unidecode/Unidecode.SlackBuild b/python/Unidecode/Unidecode.SlackBuild index 0fcff3454dd60..defc384fff6ef 100644 --- a/python/Unidecode/Unidecode.SlackBuild +++ b/python/Unidecode/Unidecode.SlackBuild @@ -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 |