summaryrefslogtreecommitdiffstats
path: root/python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild
diff options
context:
space:
mode:
author fourtysixandtwo <fourtysixandtwo@sliderr.net>2024-09-10 05:10:39 -0600
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-14 23:37:06 +0700
commit3ecc5869ec6f74087118ce59d00f4cc082464a4a (patch)
tree7315ee2a24831f199e7309a96f9899d833c4e45c /python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild
parent9ec884ceb90e603a148cd1a4e0d0a15f8657479c (diff)
downloadslackbuilds-3ecc5869ec6f74087118ce59d00f4cc082464a4a.tar.gz
slackbuilds-3ecc5869ec6f74087118ce59d00f4cc082464a4a.tar.xz
python/python3-hatch_jupyter_builder: Fix for new hatchling.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild b/python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild
index 032fd73619..5c2e51c528 100644
--- a/python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild
+++ b/python/python3-hatch_jupyter_builder/python3-hatch_jupyter_builder.SlackBuild
@@ -63,6 +63,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