From ac4d7d7f1a34f63c8cfdec9ab266a9d863c45125 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Sun, 31 Mar 2024 11:33:40 -0600 Subject: [PATCH] gis/python3-netcdf4-python: Fix PYTHONPATH. Signed-off-by: Willy Sudiarto Raharjo --- gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild b/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild index 3a0ac454f0..1e9dffc224 100644 --- a/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild +++ b/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild @@ -71,7 +71,8 @@ sed -i 's/oldest-supported-numpy/numpy>=1.19.3/' pyproject.toml # Requires newer version of setuptools than available in -stable. Has not # effect on -current -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