From d88d85304786b092d6763f8142a74310388e8141 Mon Sep 17 00:00:00 2001 From: ArTourter Date: Sun, 9 Apr 2023 22:24:41 +0100 Subject: python/python3-nltk: Updated for version 3.8.1. - move build system to python3-build python3-installed and wheel - add optional runtime dependency in python3-numpy note in README - correct mention of python3-regex (instead of 'regex') in README Signed-off-by: ArTourter Signed-off-by: Andrew Clemons Signed-off-by: Willy Sudiarto Raharjo --- python/python3-nltk/python3-nltk.SlackBuild | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python/python3-nltk/python3-nltk.SlackBuild') diff --git a/python/python3-nltk/python3-nltk.SlackBuild b/python/python3-nltk/python3-nltk.SlackBuild index 7b5f69af3c..0654412bba 100644 --- a/python/python3-nltk/python3-nltk.SlackBuild +++ b/python/python3-nltk/python3-nltk.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for python3-nltk. # # Copyright 2009-2011 Marco Bonetti -# Copyright 2015-2022 Gregory J. L. Tourte +# Copyright 2015-2023 Gregory J. L. Tourte # 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-nltk -VERSION=${VERSION:-3.8} +VERSION=${VERSION:-3.8.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -72,7 +72,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -python3 setup.py install --root=$PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3