python/dnspython: Added python3 support

Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
This commit is contained in:
Larry Hajali 2018-01-15 10:36:03 -08:00 committed by Willy Sudiarto Raharjo
parent 46c8192bd9
commit 1c44d71b6f
2 changed files with 8 additions and 3 deletions

View file

@ -7,4 +7,5 @@ level classes perform queries for data of a given name, type, and
class, and return an answer set. The low level classes allow direct class, and return an answer set. The low level classes allow direct
manipulation of DNS zones, messages, names, and records. manipulation of DNS zones, messages, names, and records.
pycrypto and ecdsa are optional dependencies for DNSSEC functionality. python3, pycrypto and ecdsa are optional dependencies for DNSSEC
functionality.

View file

@ -2,7 +2,7 @@
# Slackware build script for dnspython # 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. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=dnspython PRGNAM=dnspython
VERSION=${VERSION:-1.15.0} VERSION=${VERSION:-1.15.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -57,6 +57,10 @@ find -L . \
python setup.py install --root=$PKG 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 \ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true