diff options
Diffstat (limited to 'python/python3-pyjwt/python3-pyjwt.SlackBuild')
-rw-r--r-- | python/python3-pyjwt/python3-pyjwt.SlackBuild | 8 |
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 |