aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-09-10 05:10:53 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-14 23:37:08 +0700
commit7e70d92ffd2eb11c7955844d9283dbda4c0b4a52 (patch)
treed9b991bfa6dbd11274bf03226f853ac13cd733a2 /python
parente7cc4849d636159d63c40cc61ce016c266ab3d97 (diff)
python/termcolor: Fix for new hatchling.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/termcolor/termcolor.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/termcolor/termcolor.SlackBuild b/python/termcolor/termcolor.SlackBuild
index 9059093447..b0972e3882 100644
--- a/python/termcolor/termcolor.SlackBuild
+++ b/python/termcolor/termcolor.SlackBuild
@@ -79,6 +79,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