summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 22:35:31 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:18 +0200
commit1665bbc6a2ad1d3b816394acbab7e9b5469a6986 (patch)
treea03959d234385999eb6e9f2c5d2fa7cf47505f95
parentdd475e9398b2616f4c0e43d8dc277dd9f64f0d94 (diff)
downloadslackbuilds-1665bbc6a2ad1d3b816394acbab7e9b5469a6986.tar.gz
python/tqdm: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/tqdm/tqdm.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/tqdm/tqdm.SlackBuild b/python/tqdm/tqdm.SlackBuild
index 796e3eb7b3..59dd3c1566 100644
--- a/python/tqdm/tqdm.SlackBuild
+++ b/python/tqdm/tqdm.SlackBuild
@@ -76,7 +76,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# 46and2: newer setuptools needed
-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