mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
python/python3-rtree: Update for 1.2.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
550280dfd3
commit
f97f365433
2 changed files with 15 additions and 23 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for python3-rtree
|
||||
|
||||
# Copyright 2023 Isaac Yu <isaacyu@protonmail.com>
|
||||
# Copyright 2023-2024 Isaac Yu <isaacyu@protonmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=python3-rtree
|
||||
VERSION=${VERSION:-1.0.1}
|
||||
VERSION=${VERSION:-1.2.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -49,20 +49,6 @@ TMP=${TMP:-/tmp/SBo}
|
|||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i586" ]; then
|
||||
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -78,13 +64,19 @@ 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 {} \;
|
||||
|
||||
python3 setup.py install --root=$PKG
|
||||
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
|
||||
export PYTHONPATH=/opt/python$PYVER/site-packages/
|
||||
|
||||
# python3-rtree can be built by running setup.py directly.
|
||||
# However, this brings about a "SetuptoolsDeprecationWarning: setup.py install is deprecated."
|
||||
python3 -m build --no-isolation
|
||||
python3 -m installer -d "$PKG" dist/*.whl
|
||||
|
||||
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
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CREDITS.txt LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a CREDITS.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="python3-rtree"
|
||||
VERSION="1.0.1"
|
||||
HOMEPAGE="https://github.com/Toblerity/rtree/"
|
||||
DOWNLOAD="https://github.com/Toblerity/rtree/archive/1.0.1/rtree-1.0.1.tar.gz"
|
||||
MD5SUM="c70d72aa1cfa232aac945735da364e9d"
|
||||
VERSION="1.2.0"
|
||||
HOMEPAGE="https://rtree.readthedocs.io/en/latest/"
|
||||
DOWNLOAD="https://github.com/Toblerity/rtree/archive/1.2.0/rtree-1.2.0.tar.gz"
|
||||
MD5SUM="8e8f8cff48ff3684907f174e695601fd"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="libspatialindex python3-wheel"
|
||||
REQUIRES="libspatialindex python3-setuptools-opt"
|
||||
MAINTAINER="Isaac Yu"
|
||||
EMAIL="isaacyu@protonmail.com"
|
||||
|
|
Loading…
Reference in a new issue