summaryrefslogtreecommitdiff
path: root/gis
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2020-02-24 12:46:49 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-29 07:45:17 +0700
commit4320e0f862d6959157cf2847a53fed1e1b94610c (patch)
tree97d4e6f93d3ebbc6ede6194dd2382cb9dbef09d9 /gis
parentc346fc57c1bb94ff01b9a791aeb1f8ed5f376e1e (diff)
downloadslackbuilds-4320e0f862d6959157cf2847a53fed1e1b94610c.tar.gz
gis/OWSLib: Python 3 by default.
Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
Diffstat (limited to 'gis')
-rw-r--r--gis/OWSLib/OWSLib.SlackBuild6
-rw-r--r--gis/OWSLib/OWSLib.info2
2 files changed, 3 insertions, 5 deletions
diff --git a/gis/OWSLib/OWSLib.SlackBuild b/gis/OWSLib/OWSLib.SlackBuild
index ff73519421..217ad4bbca 100644
--- a/gis/OWSLib/OWSLib.SlackBuild
+++ b/gis/OWSLib/OWSLib.SlackBuild
@@ -69,10 +69,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-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
+python2 setup.py install --root=$PKG
+python3 setup.py install --root=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/gis/OWSLib/OWSLib.info b/gis/OWSLib/OWSLib.info
index c0a409bb56..95184e2fab 100644
--- a/gis/OWSLib/OWSLib.info
+++ b/gis/OWSLib/OWSLib.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/geopython/OWSLib/archive/0.19.1/OWSLib-0.19.1.tar.g
MD5SUM="198befd5de54cd909e2efbda45f73e1c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python-dateutil pytz lxml six"
+REQUIRES="python-dateutil python3-dateutil pytz lxml six python3-six"
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"