From e04aec245ca7060246b2151b8d3106e001c1f99a Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat Date: Sun, 24 Nov 2019 14:56:56 +0000 Subject: [PATCH] l/python-prompt-toolkit: Upgraded to python-prompt-toolkit-2.0.10. --- .../prompt_toolkit-1.0.15.tar.gz.sha256 | 1 - .../prompt_toolkit-2.0.10.tar.gz.sha256 | 1 + .../python-prompt-toolkit.SlackBuild | 17 ++++++++--------- 3 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 l/python-prompt-toolkit/prompt_toolkit-1.0.15.tar.gz.sha256 create mode 100644 l/python-prompt-toolkit/prompt_toolkit-2.0.10.tar.gz.sha256 diff --git a/l/python-prompt-toolkit/prompt_toolkit-1.0.15.tar.gz.sha256 b/l/python-prompt-toolkit/prompt_toolkit-1.0.15.tar.gz.sha256 deleted file mode 100644 index 59453ad2..00000000 --- a/l/python-prompt-toolkit/prompt_toolkit-1.0.15.tar.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -858588f1983ca497f1cf4ffde01d978a3ea02b01c8a26a8bbc5cd2e66d816917 prompt_toolkit-1.0.15.tar.gz diff --git a/l/python-prompt-toolkit/prompt_toolkit-2.0.10.tar.gz.sha256 b/l/python-prompt-toolkit/prompt_toolkit-2.0.10.tar.gz.sha256 new file mode 100644 index 00000000..443e87c3 --- /dev/null +++ b/l/python-prompt-toolkit/prompt_toolkit-2.0.10.tar.gz.sha256 @@ -0,0 +1 @@ +f15af68f66e664eaa559d4ac8a928111eebd5feda0c11738b5998045224829db prompt_toolkit-2.0.10.tar.gz diff --git a/l/python-prompt-toolkit/python-prompt-toolkit.SlackBuild b/l/python-prompt-toolkit/python-prompt-toolkit.SlackBuild index e7c5eaaf..76a42173 100755 --- a/l/python-prompt-toolkit/python-prompt-toolkit.SlackBuild +++ b/l/python-prompt-toolkit/python-prompt-toolkit.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash # Build script for Slackware -# Copyright (C) 2018 Damien Goutte-Gattat +# Copyright (C) 2018,2019 Damien Goutte-Gattat # # Redistribution and use of this script, with or without modifications, # is permitted provided that the following conditions are met: @@ -25,13 +25,12 @@ # Latest prompt_toolkit sourcecode is available at: # . # -# Depends: l/python-six, l/python-wcwidth +# Depends: l/python-wcwidth # Source package infos NAMESRC=${NAMESRC:-prompt_toolkit} -VERSION=${VERSION:-1.0.15} +VERSION=${VERSION:-2.0.10} ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} -WGET=${WGET:-https://pypi.python.org/packages/8a/ad/cf6b128866e78ad6d7f1dc5b7f99885fb813393d9860778b2984582e81b5/$ARCHIVE} # Build infos NAMEPKG=${NAMEPKG:-python-prompt-toolkit} @@ -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,10 @@ cd $TMP echo "Building $ARCHIVE..." tar xf $CWD/$ARCHIVE cd $NAME -python setup.py build -python setup.py install --root=$PKG +python2 setup.py build +python2 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 @@ -84,7 +84,6 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc # Add dependency infos cat < $PKG/install/slack-required -python-six python-wcwidth EOF