diff options
Diffstat (limited to 'python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild')
-rw-r--r-- | python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild b/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild index 9f6e500559..ccf499c5db 100644 --- a/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild +++ b/python/python3-rapidfuzz/python3-rapidfuzz.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-rapidfuzz -# Copyright 2024 Jeremy Hansen <jebrhansen+SBo@gmail.com> +# Copyright 2024-2025 Jeremy Hansen <jebrhansen+SBo@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,11 +24,11 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-rapidfuzz -VERSION=${VERSION:-1.9.1} -RAPIDCPPVER=${RAPIDCPPVER:-103674db0785f6c1c8e247abc850e48c75c22e1c} -TASKVER=${TASKVER:-2.7.0} +VERSION=${VERSION:-3.13.0} +RAPIDCPPVER=${RAPIDCPPVER:-2440ffa} +TASKVER=${TASKVER:-130f795} SRCNAM=${SRCNAM:-RapidFuzz} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -56,11 +56,11 @@ mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.gz -tar xvf $CWD/rapidfuzz-cpp-$RAPIDCPPVER.tar.gz -tar xvf $CWD/taskflow-$TASKVER.tar.gz +tar xvf $CWD/rapidfuzz-cpp-$RAPIDCPPVER*.tar.gz +tar xvf $CWD/taskflow-$TASKVER*.tar.gz rmdir $SRCNAM-$VERSION/extern/{rapidfuzz-cpp,taskflow} -mv rapidfuzz-cpp-$RAPIDCPPVER $SRCNAM-$VERSION/extern/rapidfuzz-cpp -mv taskflow-$TASKVER $SRCNAM-$VERSION/extern/taskflow +mv rapidfuzz-cpp-$RAPIDCPPVER* $SRCNAM-$VERSION/extern/rapidfuzz-cpp +mv taskflow-$TASKVER* $SRCNAM-$VERSION/extern/taskflow cd $SRCNAM-$VERSION chown -R root:root . find -L . \ @@ -69,8 +69,12 @@ 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 {} \; -# Just allow any numpy -sed -i 's|oldest-supported-numpy|numpy|' pyproject.toml +# Just allow any numpy, and newer Cython +sed -i 's|oldest-supported-numpy|numpy|;s|, <3.1.0||' pyproject.toml + +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH="/opt/python$PYVER/site-packages:/opt/cython/python$PYVER/site-packages" +export PATH="/opt/cython/bin:$PATH" python3 -m build --wheel --no-isolation python3 -m installer --destdir=$PKG dist/*.whl |