diff options
author | ArTourter <artourter@gmail.com> | 2023-06-24 00:51:32 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-07-02 23:21:13 +0700 |
commit | 5751eb4adff7c0f87e0088883cc8f632b28b23ff (patch) | |
tree | 99d863fca585177e6ccfc79dea0dd9250ab40125 /gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild | |
parent | 08b8acf5abb21d651af5fa361624b06bf2194f73 (diff) |
gis/python3-netcdf4-python: Updated for version 1.6.4.
- added dep python3-setuptools-opt
- patch for oldest-supported-numpy requirement
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/python3-netcdf4-python/python3-netcdf4-python.SlackBuild')
-rw-r--r-- | gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild b/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild index 908be04c4e58..1ae1f1e3549e 100644 --- a/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild +++ b/gis/python3-netcdf4-python/python3-netcdf4-python.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-netcdf4-python -# 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 @@ -25,13 +25,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-netcdf4-python -VERSION=${VERSION:-1.6.2} +VERSION=${VERSION:-1.6.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} SRCNAM=netcdf4-python -SRCVER=${VERSION} +SRCVER=${VERSION}rel if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -50,20 +50,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -79,7 +65,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python3 setup.py install --root=$PKG +# Fixing numpy dependency check in pyproject.toml: +# oldest-supported-numpy has a strict check and doesn't support newer version +# so we replace it. The alternative is to add --skip-dependency-check to tbe +# build line but this is not deemed optimal. +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 + +python3 -m build --no-isolation +python3 -m installer -d "$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 |