summaryrefslogtreecommitdiffstats
path: root/gis/python3-xarray/python3-xarray.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'gis/python3-xarray/python3-xarray.SlackBuild')
-rw-r--r--gis/python3-xarray/python3-xarray.SlackBuild3
1 files changed, 2 insertions, 1 deletions
diff --git a/gis/python3-xarray/python3-xarray.SlackBuild b/gis/python3-xarray/python3-xarray.SlackBuild
index 2878d456d6..92d7f121e6 100644
--- a/gis/python3-xarray/python3-xarray.SlackBuild
+++ b/gis/python3-xarray/python3-xarray.SlackBuild
@@ -66,7 +66,8 @@ find -L . \
-perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
-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