mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
gis/Shapely: Enable Python 3 by default.
This commit is contained in:
parent
4197c5da09
commit
d945102b2a
2 changed files with 5 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for Shapely
|
||||
|
||||
# Copyright 2013-2018 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||
# Copyright 2013-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=Shapely
|
||||
VERSION=${VERSION:-1.6.4}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -72,10 +72,8 @@ find -L . \
|
|||
# remove unnecessary .pxi file
|
||||
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
|
||||
python2 setup.py install --root=$PKG
|
||||
python3 setup.py install --root=$PKG
|
||||
|
||||
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
|
||||
|
|
|
@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/Toblerity/Shapely/archive/1.6.4/Shapely-1.6.4.tar.g
|
|||
MD5SUM="cf6f7abde575bb75ce0b39aaf061930f"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="geos"
|
||||
REQUIRES="geos python3"
|
||||
MAINTAINER="Benjamin Trigona-Harany"
|
||||
EMAIL="slackbuilds@jaxartes.net"
|
||||
|
|
Loading…
Reference in a new issue