diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2019-06-07 15:49:26 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-06-09 05:33:17 +0700 |
commit | 71a6958e892267b34c6dbd1777ce042bbd2ae315 (patch) | |
tree | 4e24a43ac9743c697afc2620c8082ee1be92cc00 /gis/geographiclib-python | |
parent | aa203f4b425d44320d9e906991642d6c0edb4275 (diff) | |
download | slackbuilds-71a6958e892267b34c6dbd1777ce042bbd2ae315.tar.gz |
gis/geographiclib-python: Require python3.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'gis/geographiclib-python')
-rw-r--r-- | gis/geographiclib-python/geographiclib-python.SlackBuild | 10 | ||||
-rw-r--r-- | gis/geographiclib-python/geographiclib-python.info | 2 |
2 files changed, 5 insertions, 7 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 \ diff --git a/gis/geographiclib-python/geographiclib-python.info b/gis/geographiclib-python/geographiclib-python.info index f4e97bea60..a801c39db4 100644 --- a/gis/geographiclib-python/geographiclib-python.info +++ b/gis/geographiclib-python/geographiclib-python.info @@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/source/g/geographiclib/geograp MD5SUM="eec8f975cd72af4f8ddebade1f613184" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3" MAINTAINER="Benjamin Trigona-Harany" EMAIL="slackbuilds@jaxartes.net" |