Browse Source

l/python-ptyprocess: Upgraded to python-ptyprocess-0.6.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
c735d2c591
  1. 1
      l/python-ptyprocess/ptyprocess-0.5.2.tar.gz.sha256
  2. 1
      l/python-ptyprocess/ptyprocess-0.6.0.tar.gz.sha256
  3. 20
      l/python-ptyprocess/python-ptyprocess.SlackBuild

1
l/python-ptyprocess/ptyprocess-0.5.2.tar.gz.sha256

@ -1 +0,0 @@
e64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365 ptyprocess-0.5.2.tar.gz

1
l/python-ptyprocess/ptyprocess-0.6.0.tar.gz.sha256

@ -0,0 +1 @@
923f299cc5ad920c68f2bc0bc98b75b9f838b93b599941a6b63ddbc2476394c0 ptyprocess-0.6.0.tar.gz

20
l/python-ptyprocess/python-ptyprocess.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:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-ptyprocess}
VERSION=${VERSION:-0.5.2}
VERSION=${VERSION:-0.6.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/51/83/5d07dc35534640b06f9d9f1a1d2bc2513fb9cc7595a1b0e28ae5477056ce/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-ptyprocess}
@ -58,8 +57,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)
@ -69,13 +67,21 @@ 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
install -m 644 LICENSE README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
if type -p sphinx-build ; then
sphinx-build -b html docs $PKG/usr/doc/$NAMEPKG-$VERSION/html
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save