Browse Source

l/numexpr: Upgraded to numexpr-2.7.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
a783194a05
  1. 1
      l/numexpr/numexpr-2.6.0.tar.gz.sha1
  2. 1
      l/numexpr/numexpr-2.7.0.tar.gz.sha256
  3. 22
      l/numexpr/numexpr.SlackBuild

1
l/numexpr/numexpr-2.6.0.tar.gz.sha1

@ -1 +0,0 @@
02b80e27878853e65ccc8884f1d83d9fdc017abf numexpr-2.6.0.tar.gz

1
l/numexpr/numexpr-2.7.0.tar.gz.sha256

@ -0,0 +1 @@
37324b5981b8962102bdc8640c4f05f5589da5d1df2702418783085cb78ca217 numexpr-2.7.0.tar.gz

22
l/numexpr/numexpr.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2013,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2012,2013,2015,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,15 +29,16 @@
# Source package infos
NAMESRC=${NAMESRC:-numexpr}
VERSION=${VERSION:-2.6.0}
VERSION=${VERSION:-2.7.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://github.com/pydata/numexpr/archive/v$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/87/91/9e6305ec0f0560bf2c3730ad0b5ff3c8d6b48b442a830ff506bc6c829ac0/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-numexpr}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
JOBS=${JOBS:-1}
# Directories
TMP=${TMP:-/tmp}
@ -77,7 +78,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
@ -87,8 +88,12 @@ tar xf $CWD/$ARCHIVE
cd $NAME
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build -j $JOBS
python2 setup.py install --root=$PKG
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
python3 setup.py build -j $JOBS
python3 setup.py install --root=$PKG
# Strip binaries
find $PKG | xargs file | grep "ELF \(32\|64\)-bit LSB" | cut -d : -f 1 | \
@ -102,6 +107,11 @@ install -m 644 ANNOUNCE.rst AUTHORS.txt LICENSE.txt README.rst \
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
numpy
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save