From aa29a76b8a82fbc6b8853749d1692aad12b34377 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Fri, 17 Jan 2020 01:21:45 +0700 Subject: python/Unidecode: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/Unidecode/Unidecode.SlackBuild | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/Unidecode') diff --git a/python/Unidecode/Unidecode.SlackBuild b/python/Unidecode/Unidecode.SlackBuild index 0fcff3454d..defc384fff 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 -- cgit v1.2.3