Browse Source

l/pytables: Upgraded to pytables-3.5.2.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
3658de3d69
  1. 44
      l/pytables/pytables.SlackBuild
  2. 1
      l/pytables/tables-3.2.0.tar.gz.sha1
  3. 1
      l/pytables/tables-3.5.2.tar.gz.sha256

44
l/pytables/pytables.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2010,2012,2014,2015 Damien Goutte-Gattat
# Copyright (C) 2010,2012,2014,2015,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,13 +24,13 @@
#
# Latest pytables sourcecode is available at: <http://www.pytables.org/>.
#
# Depends: l/hdf5, l/numexpr, d/cython
# Depends: l/hdf5, l/numexpr, l/python-mock
# Source package infos
NAMESRC=${NAMESRC:-tables}
VERSION=${VERSION:-3.2.0}
VERSION=${VERSION:-3.5.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/pytables/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/73/51/6dabb2b94826e5db3aa2542b80f1382780b96a0cd13e0cfb637b36ede5c5/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pytables}
@ -75,7 +75,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -86,9 +86,30 @@ cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
CPPFLAGS=-I/usr/include/hdf5 \
python setup.py build
python2 setup.py build
CPPFLAGS=-I/usr/include/hdf5 \
python setup.py install --root=$PKG
python2 setup.py install --root=$PKG
# Add a suffix to installed executable files
for f in pttree pt2to3 ptdump ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-2.7
done
# And now for Python3
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
CPPFLAGS=-I/usr/include/hdf5 \
python3 setup.py build
CPPFLAGS=-I/usr/include/hdf5 \
python3 setup.py install --root=$PKG
# Add a suffix to installed executable files
for f in pttree pt2to3 ptdump ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-3.7
done
# Add default symlinks to the 2.7 executables
for f in pttree pt2to3 ptdump ; do
ln -s $f-2.7 $PKG/usr/bin/$f
done
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
@ -96,13 +117,20 @@ find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 ANNOUNCE.txt LICENSE.txt LICENSES/* PKG-INFO README.rst \
install -m 644 ANNOUNCE.txt LICENSE.txt LICENSES/* README.rst \
RELEASE_NOTES.txt THANKS $PKG/usr/doc/$NAMEPKG-$VERSION
cp -r examples doc/html doc/scripts $PKG/usr/doc/$NAMEPKG-$VERSION
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
hdf5
numexpr
python-mock
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

1
l/pytables/tables-3.2.0.tar.gz.sha1

@ -1 +0,0 @@
4d88705903a877a6c4f85eddefeece8346fafcf9 tables-3.2.0.tar.gz

1
l/pytables/tables-3.5.2.tar.gz.sha256

@ -0,0 +1 @@
b220e32262bab320aa41d33125a7851ff898be97c0de30b456247508e2cc33c2 tables-3.5.2.tar.gz
Loading…
Cancel
Save