summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/python3-PyGithub/python3-PyGithub.SlackBuild3
1 files changed, 2 insertions, 1 deletions
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