Browse Source

l/python-flake8-polyfill: Updated.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
8ac2a1a75b
  1. 8
      l/python-flake8-polyfill/python-flake8-polyfill.SlackBuild

8
l/python-flake8-polyfill/python-flake8-polyfill.SlackBuild

@ -31,7 +31,6 @@
NAMESRC=${NAMESRC:-flake8-polyfill}
VERSION=${VERSION:-1.0.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/e6/67/1c26634a770db5c442e361311bee73cb3a177adb2eb3f7af8953cfd9f553/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-flake8-polyfill}
@ -60,8 +59,7 @@ fi
# 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)
@ -71,8 +69,8 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save