summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 19:33:44 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:14 +0200
commitd28985193765c72d07f3d5cd30da5f51c4206b2c (patch)
tree426ad7ed8c478e382a1b670ded516bafbbc444f6
parentdebfa3488d80277ccc91252ac09f6817ef4d543b (diff)
downloadslackbuilds-d28985193765c72d07f3d5cd30da5f51c4206b2c.tar.gz
python/python3-joblib: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-joblib/python3-joblib.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-joblib/python3-joblib.SlackBuild b/python/python3-joblib/python3-joblib.SlackBuild
index aa68fb4535..f521684d5c 100644
--- a/python/python3-joblib/python3-joblib.SlackBuild
+++ b/python/python3-joblib/python3-joblib.SlackBuild
@@ -67,7 +67,8 @@ find -L . \
# Use newer, non-stock setuptools due to package requirements
# Requres python/python3-setuptools-opt build-time dependency
-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