diff options
Diffstat (limited to 'python/python-pbkdf2/python-pbkdf2.SlackBuild')
-rw-r--r-- | python/python-pbkdf2/python-pbkdf2.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/python-pbkdf2/python-pbkdf2.SlackBuild b/python/python-pbkdf2/python-pbkdf2.SlackBuild index a6c1df1f1408e..74a33fa1e8007 100644 --- a/python/python-pbkdf2/python-pbkdf2.SlackBuild +++ b/python/python-pbkdf2/python-pbkdf2.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-pbkdf2 -# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# Copyright 2015-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -54,7 +54,7 @@ else LIBDIRSUFFIX="" fi -set -e +set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -71,6 +71,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 |