gis/OWSLib: Python 3 by default.

Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
This commit is contained in:
Benjamin Trigona-Harany 2020-02-24 12:46:49 -08:00 committed by Willy Sudiarto Raharjo
parent c346fc57c1
commit 4320e0f862
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 3 additions and 5 deletions

View file

@ -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

View file

@ -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"