diff options
-rw-r--r-- | python/python-qrcode/python-qrcode.SlackBuild | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/python/python-qrcode/python-qrcode.SlackBuild b/python/python-qrcode/python-qrcode.SlackBuild index 5bd9cb9da2..f240f72f61 100644 --- a/python/python-qrcode/python-qrcode.SlackBuild +++ b/python/python-qrcode/python-qrcode.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python-qrcode -# 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 @@ -74,6 +74,10 @@ sed -i "s|share/man/man1|man/man1|" setup.py 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 |