Browse Source

Do not use pip to download python modules.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
f2f5dc5667
  1. 4
      l/cheetah/cheetah.SlackBuild
  2. 4
      l/python-markdown/python-markdown.SlackBuild

4
l/cheetah/cheetah.SlackBuild

@ -31,6 +31,7 @@
NAMESRC=${NAMESRC:-Cheetah}
VERSION=${VERSION:-2.4.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/cd/b0/c2d700252fc251e91c08639ff41a8a5203b627f4e0a2ae18a6b662ab32ea/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-cheetah}
@ -71,7 +72,8 @@ esac
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
pip download --no-deps --no-binary :all: $NAMESRC==$VERSION
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)

4
l/python-markdown/python-markdown.SlackBuild

@ -28,6 +28,7 @@
NAMESRC=${NAMESRC:-Markdown}
VERSION=${VERSION:-2.6.10}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.zip}
WGET=${WGET:-https://pypi.python.org/packages/f0/68/d7d5503adbd302fb8e44c8ece2b8afff467a888efb8a0a116c432cc4f4fe/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-markdown}
@ -56,7 +57,8 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
pip download --no-deps --no-binary :all: $NAMESRC==$VERSION
wget -c -O "$ARCHIVE.part" "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION

Loading…
Cancel
Save