aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 471c8698d03f..ac0907d994ca 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