diff options
author | Larry Hajali <larryhaja@gmail.com> | 2018-01-15 10:36:03 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-17 19:46:27 +0700 |
commit | 1c44d71b6f9eff6ea71a197f30b571d44cc3ad59 (patch) | |
tree | 7ca17effd12531d3b0f7d6536dafc4cb6af02fde /python/dnspython/dnspython.SlackBuild | |
parent | 46c8192bd97c0ab1ec862d9f83f47f72ab1ba612 (diff) |
python/dnspython: Added python3 support
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'python/dnspython/dnspython.SlackBuild')
-rw-r--r-- | python/dnspython/dnspython.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/dnspython/dnspython.SlackBuild b/python/dnspython/dnspython.SlackBuild index 20cf6e95eecd4..d5df6ee9e4fd6 100644 --- a/python/dnspython/dnspython.SlackBuild +++ b/python/dnspython/dnspython.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for dnspython -# Copyright 2009-2016 Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2009-2018 Larry Hajali <larryhaja[at]gmail[dot]com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=dnspython VERSION=${VERSION:-1.15.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -57,6 +57,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 | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |