From f563de6ae73d60cae0eedc15cb7ff3d3c970ffe2 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 4 Jan 2018 08:20:32 +0700 Subject: python/python-qrcode: Add python3 support. Signed-off-by: Willy Sudiarto Raharjo --- python/python-qrcode/python-qrcode.SlackBuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python/python-qrcode') 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 +# Copyright 2015-2018 Willy Sudiarto Raharjo # 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 -- cgit v1.2.3