summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:44 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:14 +0200
commitfe45e187ed60ad0c2ab12bfd76d437d21f3b6a60 (patch)
treeb18c0e55f3ca34d07d6f5748675549b365cce9ae
parentd28985193765c72d07f3d5cd30da5f51c4206b2c (diff)
downloadslackbuilds-fe45e187ed60ad0c2ab12bfd76d437d21f3b6a60.tar.gz
python/python3-json5: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-json5/python3-json5.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-json5/python3-json5.SlackBuild b/python/python3-json5/python3-json5.SlackBuild
index be7be58b44..7e2007dee9 100644
--- a/python/python3-json5/python3-json5.SlackBuild
+++ b/python/python3-json5/python3-json5.SlackBuild
@@ -65,7 +65,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