Browse Source

l/python-future: Upgraded to python-future-0.18.2.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
24c8bf42a9
  1. 1
      l/python-future/future-0.16.0.tar.gz.sha256
  2. 1
      l/python-future/future-0.18.2.tar.gz.sha256
  3. 26
      l/python-future/python-future.SlackBuild

1
l/python-future/future-0.16.0.tar.gz.sha256

@ -1 +0,0 @@
e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb future-0.16.0.tar.gz

1
l/python-future/future-0.18.2.tar.gz.sha256

@ -0,0 +1 @@
b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d future-0.18.2.tar.gz

26
l/python-future/python-future.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:
@ -26,9 +26,9 @@
# Source package infos
NAMESRC=${NAMESRC:-future}
VERSION=${VERSION:-0.16.0}
VERSION=${VERSION:-0.18.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-future}
@ -68,8 +68,24 @@ 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
for f in futurize pasteurize ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-2.7
done
# And now for Python 3
rm -rf build
python3 setup.py build
python3 setup.py install --root=$PKG
for f in futurize pasteurize ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-3.7
done
# Add default symlinks to the -2.7 executables
for f in futurize pasteurize ; do
ln -s $f-2.7 $PKG/usr/bin/$f
done
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save