aboutsummaryrefslogtreecommitdiff
path: root/gis/geographiclib-python/geographiclib-python.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2019-06-07 15:49:26 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-09 05:33:17 +0700
commit71a6958e892267b34c6dbd1777ce042bbd2ae315 (patch)
tree4e24a43ac9743c697afc2620c8082ee1be92cc00 /gis/geographiclib-python/geographiclib-python.SlackBuild
parentaa203f4b425d44320d9e906991642d6c0edb4275 (diff)
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 09a90d09fe731..ad5c8abcadcbe 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 \