diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-17 01:03:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-22 06:55:32 +0700 |
commit | 126c3590cd92da62b3dab53d54b2ed43490a20ca (patch) | |
tree | 3909d7e36b644e83ababb9e5a94bf48a88272831 | |
parent | 549369c31d4826da7f87ff9aa08b905262af9859 (diff) | |
download | slackbuilds-126c3590cd92da62b3dab53d54b2ed43490a20ca.tar.gz |
python/python-chardet: Add python3 support.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/python-chardet/python-chardet.SlackBuild | 4 |
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 |