diff options
Diffstat (limited to 'gis/python3-pyproj/python3-pyproj.SlackBuild')
-rw-r--r-- | gis/python3-pyproj/python3-pyproj.SlackBuild | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/gis/python3-pyproj/python3-pyproj.SlackBuild b/gis/python3-pyproj/python3-pyproj.SlackBuild index 246cf0c474..66a3a2d7b1 100644 --- a/gis/python3-pyproj/python3-pyproj.SlackBuild +++ b/gis/python3-pyproj/python3-pyproj.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for pyproj # Copyright 2013-2021 Benjamin Trigona-Harany -# Copyright 2021-2024 Gregory J. L. Tourte <artourter@gmail.com> +# Copyright 2021-2025 Gregory J. L. Tourte <artourter@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-pyproj -VERSION=${VERSION:-3.6.1} +VERSION=${VERSION:-3.7.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -53,20 +53,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 @@ -81,13 +67,9 @@ find -L . \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') -export PYTHONPATH=/opt/python$PYVER/site-packages +export PYTHONPATH="/opt/python$PYVER/site-packages:/opt/cython/python$PYVER/site-packages" +export PATH="/opt/cython/bin:$PATH" -# cython3 does not seem to be actually needed. -# Adding setuptools-scm info to get rid of spurious messages when -# python3-setuptools-scm-opt is installed -# -sed -i 's/cython>=3/cython/' pyproject.toml echo '[tool.setuptools_scm]' >> pyproject.toml python3 -m build --no-isolation |