summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:45 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:15 +0200
commit34795d10f933098937fa50a33e5022bef3fa71de (patch)
tree67683a6892fa57be6343af975af84aad6fc67b15
parent9feea667ef44bb83e8755de311e3cbc851ee7df4 (diff)
downloadslackbuilds-34795d10f933098937fa50a33e5022bef3fa71de.tar.gz
python/python3-lsp-jsonrpc: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-lsp-jsonrpc/python3-lsp-jsonrpc.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-lsp-jsonrpc/python3-lsp-jsonrpc.SlackBuild b/python/python3-lsp-jsonrpc/python3-lsp-jsonrpc.SlackBuild
index eaa082a16c..6d8e43fe6a 100644
--- a/python/python3-lsp-jsonrpc/python3-lsp-jsonrpc.SlackBuild
+++ b/python/python3-lsp-jsonrpc/python3-lsp-jsonrpc.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/
export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION