diff options
Diffstat (limited to 'python/python3-smart_open')
-rw-r--r-- | python/python3-smart_open/python3-smart_open.SlackBuild | 10 | ||||
-rw-r--r-- | python/python3-smart_open/python3-smart_open.info | 8 |
2 files changed, 11 insertions, 7 deletions
diff --git a/python/python3-smart_open/python3-smart_open.SlackBuild b/python/python3-smart_open/python3-smart_open.SlackBuild index 60c90b878d..a07da4cb68 100644 --- a/python/python3-smart_open/python3-smart_open.SlackBuild +++ b/python/python3-smart_open/python3-smart_open.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-smart_open -# Copyright 2023-2024 Isaac Yu <isaacyu@protonmail.com> +# Copyright 2023-2025 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-smart_open -VERSION=${VERSION:-7.1.0} +VERSION=${VERSION:-7.3.0.post1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -64,7 +64,11 @@ 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 -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 diff --git a/python/python3-smart_open/python3-smart_open.info b/python/python3-smart_open/python3-smart_open.info index 96b61cc523..6467bba055 100644 --- a/python/python3-smart_open/python3-smart_open.info +++ b/python/python3-smart_open/python3-smart_open.info @@ -1,10 +1,10 @@ PRGNAM="python3-smart_open" -VERSION="7.1.0" +VERSION="7.3.0.post1" HOMEPAGE="https://github.com/RaRe-Technologies/smart_open" -DOWNLOAD="https://github.com/RaRe-Technologies/smart_open/archive/v7.1.0/smart_open-7.1.0.tar.gz" -MD5SUM="7694eeb6710f5d0d3c8e909619eb0e87" +DOWNLOAD="https://github.com/RaRe-Technologies/smart_open/archive/v7.3.0.post1/smart_open-7.3.0.post1.tar.gz" +MD5SUM="1d18e4788ee8c6622e14dff9f60e4b09" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="python3-wrapt" +REQUIRES="python3-setuptools-scm-opt python3-wrapt" MAINTAINER="Isaac Yu" EMAIL="isaacyu@protonmail.com" |