summaryrefslogtreecommitdiffstats
path: root/gis/geographiclib-python/geographiclib-python.SlackBuild
diff options
context:
space:
mode:
author Benjamin Trigona-Harany2019-06-08 00:49:26 +0200
committer Willy Sudiarto Raharjo2019-06-09 00:33:17 +0200
commit71a6958e892267b34c6dbd1777ce042bbd2ae315 (patch)
tree4e24a43ac9743c697afc2620c8082ee1be92cc00 /gis/geographiclib-python/geographiclib-python.SlackBuild
parentaa203f4b425d44320d9e906991642d6c0edb4275 (diff)
downloadslackbuilds-71a6958e892267b34c6dbd1777ce042bbd2ae315.tar.gz
gis/geographiclib-python: Require python3.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'gis/geographiclib-python/geographiclib-python.SlackBuild')
-rw-r--r--gis/geographiclib-python/geographiclib-python.SlackBuild10
1 files changed, 4 insertions, 6 deletions
diff --git a/gis/geographiclib-python/geographiclib-python.SlackBuild b/gis/geographiclib-python/geographiclib-python.SlackBuild
index 09a90d09fe..ad5c8abcad 100644
--- a/gis/geographiclib-python/geographiclib-python.SlackBuild
+++ b/gis/geographiclib-python/geographiclib-python.SlackBuild
@@ -2,7 +2,7 @@
#
# SlackBuild for geographiclib-python
#
-# Copyright 2016 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
+# Copyright 2016-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
@@ -24,7 +24,7 @@
SRCNAM=geographiclib
PRGNAM=$SRCNAM-python
VERSION=${VERSION:-1.49}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,10 +71,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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \