diff options
Diffstat (limited to 'python/testpath/testpath.SlackBuild')
-rw-r--r-- | python/testpath/testpath.SlackBuild | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/python/testpath/testpath.SlackBuild b/python/testpath/testpath.SlackBuild index e6dd00699a..a34686e754 100644 --- a/python/testpath/testpath.SlackBuild +++ b/python/testpath/testpath.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for testpath # Copyright 2017-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> -# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2022 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=testpath VERSION=${VERSION:-0.6.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -80,18 +80,8 @@ 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 {} \; -# Use this setup.py shim: -cat << EOF > setup.py -from distutils.core import setup -setup(name='${PRGNAM}', - version='${VERSION}', - packages=['${PRGNAM}'], - package_data={'': ['*']}) -EOF - -# With the shim, it's a good idea to use "unshare -n" to prevent downloading -# anything extra: -unshare -n python3 setup.py install --root=$PKG || exit 1 +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 |