aboutsummaryrefslogtreecommitdiff
path: root/python/python3-incremental/python3-incremental.SlackBuild
diff options
context:
space:
mode:
authorArn0 <yth@ythogtha.org>2024-07-26 16:47:46 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-27 08:16:14 +0700
commit36aa3b429f79b28ac078282d60a5c7d2c8f1c29d (patch)
treeaec7f4f21b8278617ca2b5ddcac122b84cd7bd6e /python/python3-incremental/python3-incremental.SlackBuild
parent72385d0d96a95f4dd0d31dad441ff4b85af9e17a (diff)
python/python3-incremental: Updated for version 24.7.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-incremental/python3-incremental.SlackBuild')
-rw-r--r--python/python3-incremental/python3-incremental.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/python3-incremental/python3-incremental.SlackBuild b/python/python3-incremental/python3-incremental.SlackBuild
index 06c1f3d75a..0b4e66f056 100644
--- a/python/python3-incremental/python3-incremental.SlackBuild
+++ b/python/python3-incremental/python3-incremental.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-incremental
SRCNAM=${PRGNAM#python3-*}
-VERSION=${VERSION:-22.10.0}
+VERSION=${VERSION:-24.7.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -63,7 +63,10 @@ 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