aboutsummaryrefslogtreecommitdiff
path: root/python/python-argopt
diff options
context:
space:
mode:
Diffstat (limited to 'python/python-argopt')
-rw-r--r--python/python-argopt/python-argopt.SlackBuild10
-rw-r--r--python/python-argopt/python-argopt.info8
2 files changed, 11 insertions, 7 deletions
diff --git a/python/python-argopt/python-argopt.SlackBuild b/python/python-argopt/python-argopt.SlackBuild
index e5240410b8..b4fe850350 100644
--- a/python/python-argopt/python-argopt.SlackBuild
+++ b/python/python-argopt/python-argopt.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for python-argopt
# Copyright 2018-2021 Andrew Clemons, Wellington New Zealand
-# Copyright 2022-2023 Andrew Clemons, Tokyo Japan
+# Copyright 2022-2023,2025 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-argopt
SRCNAM="$(echo "$PRGNAM" | cut -d- -f2)"
-VERSION=${VERSION:-0.8.2}
+VERSION=${VERSION:-0.9.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -78,7 +78,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 --wheel --no-isolation
+python3 -m installer --destdir "$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/python-argopt/python-argopt.info b/python/python-argopt/python-argopt.info
index b7c2f6ca1a..77cc8e2797 100644
--- a/python/python-argopt/python-argopt.info
+++ b/python/python-argopt/python-argopt.info
@@ -1,10 +1,10 @@
PRGNAM="python-argopt"
-VERSION="0.8.2"
+VERSION="0.9.1"
HOMEPAGE="https://github.com/casperdcl/argopt"
-DOWNLOAD="https://files.pythonhosted.org/packages/88/1e/4dd20f0ad39f81dd815b6fa4fea53be370d2ca0eeef9f8dc8e05b81c4284/argopt-0.8.2.tar.gz"
-MD5SUM="8b9aa425069fa50f7570681e13dc3474"
+DOWNLOAD="https://files.pythonhosted.org/packages/a3/8c/f1dbbb7ca1b6bdfebd8b3ae1d44f099c5678a1592f1562547037e76330d4/argopt-0.9.1.tar.gz"
+MD5SUM="cae7ebda4680b70752c11a7aee692fe7"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-toml"
+REQUIRES="python3-toml python3-wheel python3-build python3-setuptools-scm-opt"
MAINTAINER="Andrew Clemons"
EMAIL="andrew.clemons@gmail.com"