summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:41 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:11 +0200
commit8ab5e6957b2707e51d2a539a8cce26d8941de5a4 (patch)
tree2148ff88e12eaab221fd6e565541f91e84a1f7d1
parentd9c14ef2a5aa70efe579a5d4e81cc8670e7ad2f0 (diff)
downloadslackbuilds-8ab5e6957b2707e51d2a539a8cce26d8941de5a4.tar.gz
python/holidays: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/holidays/holidays.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/holidays/holidays.SlackBuild b/python/holidays/holidays.SlackBuild
index 5f02a378cb..f74a302506 100644
--- a/python/holidays/holidays.SlackBuild
+++ b/python/holidays/holidays.SlackBuild
@@ -76,7 +76,8 @@ 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 {} \;
-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 --no-isolation
python3 -m installer -d "$PKG" dist/*.whl