From 13dece45abf1aa3fda736d30f709fbb7b147c818 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 14:35:29 -0600 Subject: python/python3-pytest: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- python/python3-pytest/python3-pytest.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/python3-pytest/python3-pytest.SlackBuild') 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 -- cgit v1.2.3