From 1648ef09979955a619383f8a1ee91ce290a503b4 Mon Sep 17 00:00:00 2001 From: Dominik Drobek Date: Sun, 17 Mar 2019 15:48:48 +0100 Subject: python/werkzeug: enable Python3 Signed-off-by: Willy Sudiarto Raharjo --- python/werkzeug/werkzeug.SlackBuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/werkzeug/werkzeug.SlackBuild b/python/werkzeug/werkzeug.SlackBuild index a80c334d62..3f9aacdc9b 100644 --- a/python/werkzeug/werkzeug.SlackBuild +++ b/python/werkzeug/werkzeug.SlackBuild @@ -2,8 +2,8 @@ # Slackware build script for werkzeug -# Copyright 2018 Dominik Drobek # Copyright 2013 Mohamed LYAHYAOUI +# Copyright 2018, 2019 Dominik Drobek # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ PRGNAM=werkzeug SRCNAM=Werkzeug VERSION=${VERSION:-0.14.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -71,10 +71,12 @@ 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 {} \; -python setup.py build - python setup.py install --root $PKG +if $(python3 -c 'import sys' 2>/dev/null); then + python3 setup.py install --root=$PKG +fi + 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 -- cgit v1.2.3