From 34eb46e8a59db60c469fc9fbeb8769b895ae3c73 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 11:33:42 -0600 Subject: python/python3-PyGithub: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- python/python3-PyGithub/python3-PyGithub.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/python3-PyGithub/python3-PyGithub.SlackBuild b/python/python3-PyGithub/python3-PyGithub.SlackBuild index 38fc9c50ad..b31decfb32 100644 --- a/python/python3-PyGithub/python3-PyGithub.SlackBuild +++ b/python/python3-PyGithub/python3-PyGithub.SlackBuild @@ -65,7 +65,8 @@ find -L . \ export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION # Use some newer versions of dependencies than included in 15.0 -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 --wheel --no-isolation python3 -m installer --destdir "$PKG" dist/*.whl -- cgit v1.2.3