aboutsummaryrefslogtreecommitdiff
path: root/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/django-debug-toolbar/django-debug-toolbar.SlackBuild')
-rw-r--r--python/django-debug-toolbar/django-debug-toolbar.SlackBuild14
1 files changed, 8 insertions, 6 deletions
diff --git a/python/django-debug-toolbar/django-debug-toolbar.SlackBuild b/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
index d8cc7dc755..d9dc46269a 100644
--- a/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
+++ b/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for django-debug-toolbar
-# Copyright 2020 Dimitris Zlatanidis Orestiada, Greece
+# Copyright 2020-2024 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=django-debug-toolbar
-VERSION=${VERSION:-2.1}
+SRCNAM=django_debug_toolbar
+VERSION=${VERSION:-4.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -69,9 +70,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -79,7 +80,8 @@ 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
+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