aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-09-10 05:10:27 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-14 23:37:04 +0700
commit815d243c546708ed88935b7c437ded771c3eff21 (patch)
tree3951f38447241e47027449904274749a17ba8449
parent7e61d0fda31e715c57bd01b0daa8e82be16eb065 (diff)
python/django-debug-toolbar: Fix for new hatchling.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/django-debug-toolbar/django-debug-toolbar.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/django-debug-toolbar/django-debug-toolbar.SlackBuild b/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
index d9dc46269a3a9..31c8fe186cae0 100644
--- a/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
+++ b/python/django-debug-toolbar/django-debug-toolbar.SlackBuild
@@ -80,6 +80,9 @@ 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 {} \;
+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