aboutsummaryrefslogtreecommitdiff
path: root/gis
diff options
context:
space:
mode:
authorArTourter <artourter@gmail.com>2023-10-17 00:42:01 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-10-21 17:20:14 +0700
commit1a05970a7b5420faa39dbe506582b46a37904f2f (patch)
treebd3a660b233e02e384395d5e352cbe6c1c8151d5 /gis
parent9385b66d04004daa38145937fd1f63f26a1831b0 (diff)
gis/python3-xarray: Updated for version 2023.10.1.
Signed-off-by: ArTourter <artourter@gmail.com> Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'gis')
-rw-r--r--gis/python3-xarray/python3-xarray.SlackBuild15
-rw-r--r--gis/python3-xarray/python3-xarray.info8
2 files changed, 12 insertions, 11 deletions
diff --git a/gis/python3-xarray/python3-xarray.SlackBuild b/gis/python3-xarray/python3-xarray.SlackBuild
index 4f65a78502b1..290c5906a84d 100644
--- a/gis/python3-xarray/python3-xarray.SlackBuild
+++ b/gis/python3-xarray/python3-xarray.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for python3-xarray
# Copyright 2018-2020 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
-# Copyright 2022 Gregory J. L. Tourte <artourter@gmail.com>
+# Copyright 2022-2023 Gregory J. L. Tourte <artourter@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-xarray
-VERSION=${VERSION:-2022.12.0}
+VERSION=${VERSION:-2023.10.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -77,12 +77,13 @@ tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -perm /111 -o \! -perm 755 -o -exec chmod 755 {} + -o \
+ \! -perm /111 -o \! -perm 644 -o -exec chmod 644 {} +
-python3 setup.py install --root=$PKG
+export PYTHONPATH=/opt/python3.9/site-packages/
+
+python3 -m build --wheel --no-isolation
+python3 -m installer --destdir "$PKG" dist/*.whl
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
diff --git a/gis/python3-xarray/python3-xarray.info b/gis/python3-xarray/python3-xarray.info
index c676c18807e7..f0b61df62af6 100644
--- a/gis/python3-xarray/python3-xarray.info
+++ b/gis/python3-xarray/python3-xarray.info
@@ -1,10 +1,10 @@
PRGNAM="python3-xarray"
-VERSION="2022.12.0"
+VERSION="2023.10.1"
HOMEPAGE="http://xarray.pydata.org"
-DOWNLOAD="https://github.com/pydata/xarray/archive/v2022.12.0/xarray-2022.12.0.tar.gz"
-MD5SUM="ab531cdcd49a6460bbb5915556d96a57"
+DOWNLOAD="https://github.com/pydata/xarray/archive/v2023.10.1/xarray-2023.10.1.tar.gz"
+MD5SUM="75fa686b582a72d151bc76938ece7905"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="python3-pandas"
+REQUIRES="python3-pandas python3-setuptools-scm-opt"
MAINTAINER="ArTourter"
EMAIL="artourter@gmail.com"