From 91884824ec458632ea7283f100986144764dfb44 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 14:35:30 -0600 Subject: python/python3-statsmodels: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- python/python3-statsmodels/python3-statsmodels.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/python3-statsmodels/python3-statsmodels.SlackBuild b/python/python3-statsmodels/python3-statsmodels.SlackBuild index 48e6761ccb..62d10dc7a9 100644 --- a/python/python3-statsmodels/python3-statsmodels.SlackBuild +++ b/python/python3-statsmodels/python3-statsmodels.SlackBuild @@ -74,7 +74,8 @@ sed -i '/oldest-supported-numpy/d' pyproject.toml # convert to minimum req'd instead of pinned sed -i 's/\(setuptools_scm.*\)~=/\1>=/' pyproject.toml -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 -- cgit v1.2.3