aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2025-01-16 05:59:27 +0900
committerAndrew Clemons <andrew.clemons@gmail.com>2025-01-16 05:59:27 +0900
commitc108ce0ce93e13c806ef389bc456995b4ce477f9 (patch)
treece00e4d65fa7d5d0d162aa4350bdd5ee31b6746b /python
parentcf693c5c0fa954d2e6f611837ac3ca8571d7356e (diff)
python/git-fame: Correctly use setuptools-opt.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'python')
-rw-r--r--python/git-fame/git-fame.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/git-fame/git-fame.SlackBuild b/python/git-fame/git-fame.SlackBuild
index ad71183621..5e89f6387e 100644
--- a/python/git-fame/git-fame.SlackBuild
+++ b/python/git-fame/git-fame.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for git-fame
# Copyright 2017-2021 Andrew Clemons, Wellington New Zealand
-# Copyright 2022-2024 Andrew Clemons, Tokyo Japan
+# Copyright 2022-2025 Andrew Clemons, Tokyo Japan
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=git-fame
SRCNAM=${SRCNAM:-$(printf '%s\n' "$PRGNAM" | tr '-' '_')}
VERSION=${VERSION:-2.0.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -81,6 +81,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