aboutsummaryrefslogtreecommitdiff
path: root/python/traitlets/traitlets.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/traitlets/traitlets.SlackBuild')
-rw-r--r--python/traitlets/traitlets.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/traitlets/traitlets.SlackBuild b/python/traitlets/traitlets.SlackBuild
index 341bd19859e57..1fa14f1b413f2 100644
--- a/python/traitlets/traitlets.SlackBuild
+++ b/python/traitlets/traitlets.SlackBuild
@@ -64,6 +64,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+export PYTHONPATH=/opt/python$PYVER/site-packages
+
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl