From c08367b9483d79972e2ec2d9fd472aa75124caae Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Thu, 5 Oct 2023 14:54:29 -0600 Subject: python/python3-pandas: Updated for version 2.1.1. updating with Jeremy's permission Signed-off-by: Willy Sudiarto Raharjo --- python/python3-pandas/python3-pandas.SlackBuild | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'python/python3-pandas/python3-pandas.SlackBuild') diff --git a/python/python3-pandas/python3-pandas.SlackBuild b/python/python3-pandas/python3-pandas.SlackBuild index df9305bf70..480c33e84f 100644 --- a/python/python3-pandas/python3-pandas.SlackBuild +++ b/python/python3-pandas/python3-pandas.SlackBuild @@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-pandas SRCNAM=pandas -VERSION=${VERSION:-1.4.2} +VERSION=${VERSION:-2.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -65,14 +65,26 @@ 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 +# remove requirement +sed -i '/oldest-supported-numpy/d' pyproject.toml + +# convert to minimum req'd instead of pinned +sed -i 's/meson-python==/meson-python>=/' pyproject.toml +sed -i 's/meson==/meson>=/' pyproject.toml + +# needs newer meson +export PYTHONPATH=/opt/python3.9/site-packages/ + +# cannot build sdist, specify just wheel +python3 -m build --wheel --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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - LICENSE PKG-INFO README.md RELEASE.md \ + AUTHORS.md LICENSE PKG-INFO README.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3