aboutsummaryrefslogtreecommitdiff
path: root/system/bitrot
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-03-31 14:35:31 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:18:18 +0700
commit0c3bb00b73c2e54c402938751526e87f2d9ea01c (patch)
tree4a510960e74b2cfedd5ca13237ec9a8cda779a67 /system/bitrot
parent1665bbc6a2ad1d3b816394acbab7e9b5469a6986 (diff)
system/bitrot: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/bitrot')
-rw-r--r--system/bitrot/bitrot.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/bitrot/bitrot.SlackBuild b/system/bitrot/bitrot.SlackBuild
index 6ca44898accc..527810b281ca 100644
--- a/system/bitrot/bitrot.SlackBuild
+++ b/system/bitrot/bitrot.SlackBuild
@@ -78,7 +78,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 {} \;
-export PYTHONPATH=/opt/python3.9/site-packages/
+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