Browse Source

l/markupsafe: Remove Python2 support.

current-20200608
Damien Goutte-Gattat 10 months ago
parent
commit
8a1618aab9
  1. 8
      l/markupsafe/markupsafe.SlackBuild

8
l/markupsafe/markupsafe.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2016,2017,2019 Damien Goutte-Gattat
# Copyright (C) 2014,2016,2017,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,7 +29,6 @@
NAMESRC=${NAMESRC:-MarkupSafe}
VERSION=${VERSION:-1.1.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-markupsafe}
@ -72,8 +71,7 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -83,8 +81,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG

Loading…
Cancel
Save