aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2024-09-10 05:10:22 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-14 23:37:01 +0700
commit1c76941f55267bdbc3036ca3efea0afb968f33e7 (patch)
tree5e18a505c2e60184970ec67268992bf77d5d46e7 /development
parent35c3a1f0dd2188b041986ffc1b0734f619b49442 (diff)
development/jupyter_packaging: Fix for new hatchling.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/jupyter_packaging/jupyter_packaging.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/development/jupyter_packaging/jupyter_packaging.SlackBuild b/development/jupyter_packaging/jupyter_packaging.SlackBuild
index 339d48c63e43..2bfea2e964c8 100644
--- a/development/jupyter_packaging/jupyter_packaging.SlackBuild
+++ b/development/jupyter_packaging/jupyter_packaging.SlackBuild
@@ -62,6 +62,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