From 4e040f3afc9cc11d6de7e2c895051d50a4bba0b9 Mon Sep 17 00:00:00 2001 From: isaackwy Date: Sun, 25 Feb 2024 20:42:54 -0800 Subject: python/python3-sniffio: Update for 1.3.1 Signed-off-by: Willy Sudiarto Raharjo --- python/python3-sniffio/python3-sniffio.SlackBuild | 28 ++++++----------------- 1 file changed, 7 insertions(+), 21 deletions(-) (limited to 'python/python3-sniffio/python3-sniffio.SlackBuild') diff --git a/python/python3-sniffio/python3-sniffio.SlackBuild b/python/python3-sniffio/python3-sniffio.SlackBuild index d00ace7b2e..e4f4311c45 100644 --- a/python/python3-sniffio/python3-sniffio.SlackBuild +++ b/python/python3-sniffio/python3-sniffio.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-sniffio -# Copyright 2022 Isaac Yu +# Copyright 2022-2024 Isaac Yu # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-sniffio -VERSION=${VERSION:-1.3.0} +VERSION=${VERSION:-1.3.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -52,20 +49,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 @@ -81,14 +64,17 @@ 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 +export PYTHONPATH=/opt/python3.9/site-packages/ + +python3 -m build --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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE* README.rst \ + CODE_OF_CONDUCT.md CONTRIBUTING.md README.rst \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3