summaryrefslogtreecommitdiff
path: root/python/python-chardet/python-chardet.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-17 01:03:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-22 06:55:32 +0700
commit126c3590cd92da62b3dab53d54b2ed43490a20ca (patch)
tree3909d7e36b644e83ababb9e5a94bf48a88272831 /python/python-chardet/python-chardet.SlackBuild
parent549369c31d4826da7f87ff9aa08b905262af9859 (diff)
downloadslackbuilds-126c3590cd92da62b3dab53d54b2ed43490a20ca.tar.gz
python/python-chardet: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python-chardet/python-chardet.SlackBuild')
-rw-r--r--python/python-chardet/python-chardet.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/python-chardet/python-chardet.SlackBuild b/python/python-chardet/python-chardet.SlackBuild
index 0e8ee1dae4..e8ea4139eb 100644
--- a/python/python-chardet/python-chardet.SlackBuild
+++ b/python/python-chardet/python-chardet.SlackBuild
@@ -58,6 +58,10 @@ find -L . \
python setup.py install --root=$PKG
+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