Browse Source

l/scipy: Upgraded to scipy-1.4.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
bb8efc89be
  1. 1
      l/scipy/scipy-1.0.1.tar.gz.sha256
  2. 1
      l/scipy/scipy-1.4.1.tar.gz.sha256
  3. 17
      l/scipy/scipy.SlackBuild

1
l/scipy/scipy-1.0.1.tar.gz.sha256

@ -1 +0,0 @@
8739c67842ed9a1c34c62d6cca6301d0ade40d50ef14ba292bd331f0d6c940ba scipy-1.0.1.tar.gz

1
l/scipy/scipy-1.4.1.tar.gz.sha256

@ -0,0 +1 @@
dee1bbf3a6c8f73b6b218cb28eed8dd13347ea2f87d572ce19b289d6fd3fbc59 scipy-1.4.1.tar.gz

17
l/scipy/scipy.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014-2016,2018 Damien Goutte-Gattat
# Copyright (C) 2014-2016,2018,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,12 @@
#
# Latest scipy sourcecode is available at: <http://www.scipy.org/>.
#
# Depends: l/numpy
# Depends: l/numpy, l/pybind11
# Source package infos
NAMESRC=${NAMESRC:-scipy}
VERSION=${VERSION:-1.0.1}
VERSION=${VERSION:-1.4.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/bd/f4/3882758754dc083fea6ea66a6e8ceef55e7df173d06a12a074612958800f/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-scipy}
@ -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,12 +67,12 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 HACKING.rst.txt LICENSE.txt PKG-INFO THANKS.txt \
install -m 644 HACKING.rst.txt LICENSE.txt THANKS.txt \
$PKG/usr/doc/$NAME
# Copy slack-desc file
@ -83,6 +81,7 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat > $PKG/install/slack-required <<EOF
numpy
pybind11
EOF
# Package the tree

Loading…
Cancel
Save