diff options
Diffstat (limited to 'python/wcwidth')
-rw-r--r-- | python/wcwidth/README | 2 | ||||
-rw-r--r-- | python/wcwidth/wcwidth.SlackBuild | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/python/wcwidth/README b/python/wcwidth/README index 3d43838d0a..102a1f775c 100644 --- a/python/wcwidth/README +++ b/python/wcwidth/README @@ -2,3 +2,5 @@ This API is mainly for Terminal Emulator implementors - any python program that attempts to determine the printable width of a string on a Terminal. It is implemented in python (no C library calls) and has no 3rd-party dependencies. + +Optional dependency: python3 diff --git a/python/wcwidth/wcwidth.SlackBuild b/python/wcwidth/wcwidth.SlackBuild index d05cd85a3f..b1b44e2772 100644 --- a/python/wcwidth/wcwidth.SlackBuild +++ b/python/wcwidth/wcwidth.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for wcwidth -# Copyright 2015-2016 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2015-2019 Dimitris Zlatanidis Orestiada, Greece # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=wcwidth VERSION=${VERSION:-0.1.7} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,6 +71,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 |