summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author fourtysixandtwo2024-03-31 22:35:29 +0200
committer Willy Sudiarto Raharjo2024-04-05 10:18:16 +0200
commit13dece45abf1aa3fda736d30f709fbb7b147c818 (patch)
treee581f80dff77d102e4276d67aa3d8f6772cacce7
parent5475504521712f64ef73063a95bf0bec6c8f1dd5 (diff)
downloadslackbuilds-13dece45abf1aa3fda736d30f709fbb7b147c818.tar.gz
python/python3-pytest: Fix PYTHONPATH.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--python/python3-pytest/python3-pytest.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/python3-pytest/python3-pytest.SlackBuild b/python/python3-pytest/python3-pytest.SlackBuild
index 325292f333..0391443576 100644
--- a/python/python3-pytest/python3-pytest.SlackBuild
+++ b/python/python3-pytest/python3-pytest.SlackBuild
@@ -67,7 +67,8 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Use newer setuptools
-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