summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:43 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:13 +0200
commitb12fa5c3285f030e4b222ecaace76522dd344c3e (patch)
tree6d05ff0aa3907771e0836050c61b6c212c374795
parent9b6ff952ef2f5d48b176bc3d18494e36e6a352be (diff)
downloadslackbuilds-b12fa5c3285f030e4b222ecaace76522dd344c3e.tar.gz
python/python3-astroid: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-astroid/python3-astroid.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-astroid/python3-astroid.SlackBuild b/python/python3-astroid/python3-astroid.SlackBuild
index 4186de1824..e106c9ffcc 100644
--- a/python/python3-astroid/python3-astroid.SlackBuild
+++ b/python/python3-astroid/python3-astroid.SlackBuild
@@ -79,7 +79,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Beacause of the python3-setuptools-opt
-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