diff options
author | Benjamin Trigona-Harany | 2018-03-07 17:39:33 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2018-03-10 01:11:07 +0100 |
commit | 81c428aa058004e147c62db03edaf3763d76e813 (patch) | |
tree | 09f62bd5566409e81ef63e4fc7b3cc0639649825 /gis | |
parent | 9a6686950a362fceb84cb64c4ede36ed13faef69 (diff) | |
download | old.slackbuilds-81c428aa058004e147c62db03edaf3763d76e813.tar.gz |
gis/OWSLib: Add Python 3 support.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'gis')
-rw-r--r-- | gis/OWSLib/OWSLib.SlackBuild | 3 |
1 files changed, 3 insertions, 0 deletions
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 |