summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
author fourtysixandtwo <fourtysixandtwo@sliderr.net>2024-03-31 14:35:31 -0600
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:18:19 +0700
commite76c78ece709625cc50caf6c72d7426f852c7b8d (patch)
tree8ceaef81ffb684e8fa4bda01a68023867db7b6c0 /system
parent9d9b9b9dbefb2d163030b96956ff3f3f1d2075ef (diff)
downloadslackbuilds-e76c78ece709625cc50caf6c72d7426f852c7b8d.tar.gz
slackbuilds-e76c78ece709625cc50caf6c72d7426f852c7b8d.tar.xz
system/xonsh: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/xonsh/xonsh.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/xonsh/xonsh.SlackBuild b/system/xonsh/xonsh.SlackBuild
index 471c8698d0..ac0907d994 100644
--- a/system/xonsh/xonsh.SlackBuild
+++ b/system/xonsh/xonsh.SlackBuild
@@ -82,7 +82,8 @@ find -L . \
# Fixed compatibility with python3.9
patch -p1 < $CWD/v310.patch
-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