diff options
Diffstat (limited to 'python/python3-astroid/python3-astroid.SlackBuild')
-rw-r--r-- | python/python3-astroid/python3-astroid.SlackBuild | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/python/python3-astroid/python3-astroid.SlackBuild b/python/python3-astroid/python3-astroid.SlackBuild index da8c5317db765..4a72acbb3d830 100644 --- a/python/python3-astroid/python3-astroid.SlackBuild +++ b/python/python3-astroid/python3-astroid.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for python3-astroid -# Copyright 2022 Dimitris Zlatanidis Orestiada, Greece +# Copyright 2022-2023 Dimitris Zlatanidis Orestiada, Greece # Copyright 2018-2019 Markus Rinne Finland # All rights reserved. # @@ -23,15 +23,11 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# NOTE -# Regression 2.12.13 -> 2.11.7 due to: -# https://github.com/SlackBuildsOrg/slackbuilds/pull/2421 - cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-astroid SRCNAM=astroid -VERSION=${VERSION:-2.11.7} +VERSION=${VERSION:-3.0.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,15 +78,14 @@ 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 +python3 -m build --wheel --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 \ - LICENSE PKG-INFO \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |