From b389c76742aed569691886d523f1b8e840f8dc87 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Wed, 7 Mar 2018 08:39:33 -0800 Subject: [PATCH] gis/OWSLib: Add Python 3 support. Signed-off-by: Benjamin Trigona-Harany --- gis/OWSLib/OWSLib.SlackBuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gis/OWSLib/OWSLib.SlackBuild b/gis/OWSLib/OWSLib.SlackBuild index 34f8795292..948c6e9d11 100644 --- a/gis/OWSLib/OWSLib.SlackBuild +++ b/gis/OWSLib/OWSLib.SlackBuild @@ -70,6 +70,9 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; 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