diff options
author | Benjamin Trigona-Harany <bosth@alumni.sfu.ca> | 2018-03-09 08:45:26 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-10 07:11:07 +0700 |
commit | 40516d791bd1db8ee8f12be55a364e7707832e86 (patch) | |
tree | bee580660d22c7ae6383a5d984ba6955c7e52922 | |
parent | d9e62977770498af789195f5bf8f773dcc4e24d5 (diff) | |
download | slackbuilds-40516d791bd1db8ee8f12be55a364e7707832e86.tar.gz |
gis/Shapely: Add Python 3 support.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
-rw-r--r-- | gis/Shapely/Shapely.SlackBuild | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gis/Shapely/Shapely.SlackBuild b/gis/Shapely/Shapely.SlackBuild index a7f2ecc45c..d9de959e2f 100644 --- a/gis/Shapely/Shapely.SlackBuild +++ b/gis/Shapely/Shapely.SlackBuild @@ -73,6 +73,9 @@ find -L . \ sed -i "s/data_files\s*=.*/data_files = [],/g" setup.py python setup.py install --root=$PKG +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | \ grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |