summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:42 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:12 +0200
commit34eb46e8a59db60c469fc9fbeb8769b895ae3c73 (patch)
treee92d9ffb4e71f1802fc723e2a47d909d32be152b
parent2af86c8c6a05a3fc27218e306210daefbc22352a (diff)
downloadslackbuilds-34eb46e8a59db60c469fc9fbeb8769b895ae3c73.tar.gz
python/python3-PyGithub: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-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