From 9dc13520927d7b2ef3107a94b4966aec9669ab76 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 11:33:45 -0600 Subject: [PATCH] python/python3-lsp-server: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- python/python3-lsp-server/python3-lsp-server.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/python3-lsp-server/python3-lsp-server.SlackBuild b/python/python3-lsp-server/python3-lsp-server.SlackBuild index d0cc6752a3..665f899d0d 100644 --- a/python/python3-lsp-server/python3-lsp-server.SlackBuild +++ b/python/python3-lsp-server/python3-lsp-server.SlackBuild @@ -87,7 +87,8 @@ sed -i "s|pyflakes>=2.5.0,<2.6.0|pyflakes>=2.5.0|" -i pyproject.toml sed -i "s|pylint>=2.5.0,<3|pylint>=2.5.0|" -i pyproject.toml # Use newer, non-stock setuptools due to package requirements -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