aboutsummaryrefslogtreecommitdiff
path: root/python/python3-pyjwt/python3-pyjwt.SlackBuild
diff options
context:
space:
mode:
authorArn0 <yth@ythogtha.org>2025-02-10 10:20:00 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-02-15 08:30:08 +0700
commit3da756a7071d5706e730360bd2b8a1f320052bce (patch)
treefba18ec93ba1334be126b7d6f57f1c787756f83d /python/python3-pyjwt/python3-pyjwt.SlackBuild
parenta386f30079e4960416a1c4ee27920af65b3981a4 (diff)
python/python3-pyjwt: updated for version 2.10.1
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-pyjwt/python3-pyjwt.SlackBuild')
-rw-r--r--python/python3-pyjwt/python3-pyjwt.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/python3-pyjwt/python3-pyjwt.SlackBuild b/python/python3-pyjwt/python3-pyjwt.SlackBuild
index ad7c261536..4cd6cee308 100644
--- a/python/python3-pyjwt/python3-pyjwt.SlackBuild
+++ b/python/python3-pyjwt/python3-pyjwt.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-pyjwt
SRCNAM=${PRGNAM#python3-*}
-VERSION=${VERSION:-2.8.0}
+VERSION=${VERSION:-2.10.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -74,7 +74,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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS* CHANGELOG* LICENSE* MANIFEST* README* $PKG/usr/doc/$PRGNAM-$VERSION