aboutsummaryrefslogtreecommitdiff
path: root/python/python3-poetry-core/python3-poetry-core.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-poetry-core/python3-poetry-core.SlackBuild')
-rw-r--r--python/python3-poetry-core/python3-poetry-core.SlackBuild11
1 files changed, 2 insertions, 9 deletions
diff --git a/python/python3-poetry-core/python3-poetry-core.SlackBuild b/python/python3-poetry-core/python3-poetry-core.SlackBuild
index 3f5240918d..7a56bb8d00 100644
--- a/python/python3-poetry-core/python3-poetry-core.SlackBuild
+++ b/python/python3-poetry-core/python3-poetry-core.SlackBuild
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-poetry-core
-SRCNAM=$(echo $PRGNAM | sed "s/python3-//")
-VERSION=${VERSION:-1.3.2}
+SRCNAM=$(echo $PRGNAM | sed -e "s/python3-//" -e "s/-/_/")
+VERSION=${VERSION:-1.4.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +39,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
@@ -83,10 +80,6 @@ find -L . \
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
-# installing tests to a subdir of your project might not conflict the toplevel, but
-# don't do it anyway...
-#rm -r "$PKG"/usr/lib${LIBDIRSUFFIX}/python*/site-packages/${SRCNAM}/tests/
-
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