summaryrefslogtreecommitdiff
path: root/python/MarkupSafe/MarkupSafe.SlackBuild
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <bosth@alumni.sfu.ca>2019-05-29 18:50:25 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-06-01 07:04:24 +0700
commitee77244d932b9ebf4fd84fea20ec432efccd78f1 (patch)
tree1c64e84e0a16d64fae21c126af820afae65119da /python/MarkupSafe/MarkupSafe.SlackBuild
parent791e53cc6972b4663b20bc91069d9c3236912c3d (diff)
downloadslackbuilds-ee77244d932b9ebf4fd84fea20ec432efccd78f1.tar.gz
python/MarkupSafe: Updated for version 1.1.1 and to use Python 3.
Signed-off-by: Benjamin Trigona-Harany <bosth@alumni.sfu.ca>
Diffstat (limited to 'python/MarkupSafe/MarkupSafe.SlackBuild')
-rw-r--r--python/MarkupSafe/MarkupSafe.SlackBuild11
1 files changed, 4 insertions, 7 deletions
diff --git a/python/MarkupSafe/MarkupSafe.SlackBuild b/python/MarkupSafe/MarkupSafe.SlackBuild
index c34ce51653..2651d9c8f1 100644
--- a/python/MarkupSafe/MarkupSafe.SlackBuild
+++ b/python/MarkupSafe/MarkupSafe.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=MarkupSafe
-VERSION=${VERSION:-1.1.0}
+VERSION=${VERSION:-1.1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -66,12 +66,9 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
-python setup.py install --root=$PKG --no-compile
-
-if [ "${PYTHON3:-no}" == "yes" ]; then
- CFLAGS="$SLKCFLAGS" \
- python3 setup.py install --root=$PKG --no-compile
-fi
+python2 setup.py install --root=$PKG --no-compile
+CFLAGS="$SLKCFLAGS" \
+python3 setup.py install --root=$PKG --no-compile
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