Browse Source

l/python-statsmodels: Upgraded to python-statsmodels-0.10.2.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
7f7af19dc7
  1. 20
      l/python-statsmodels/python-statsmodels.SlackBuild
  2. 1
      l/python-statsmodels/statsmodels-0.10.2.tar.gz.sha256
  3. 1
      l/python-statsmodels/statsmodels-0.8.0.tar.gz.sha256

20
l/python-statsmodels/python-statsmodels.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:
@ -25,15 +25,12 @@
# Latest statsmodels sourcecode is available at:
# <http://www.statsmodels.org/>.
#
# [NOTES]
#
# Depends: l/scipy, l/pandas, l/python-patsy
# Depends: l/pandas, l/python-patsy, l/scipy
# Source package infos
NAMESRC=${NAMESRC:-statsmodels}
VERSION=${VERSION:-0.8.0}
VERSION=${VERSION:-0.10.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/72/16/d7e7a70fc8ca3cc0d783a66e902a7adf80a810695c357cd48bb22c82451a/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-statsmodels}
@ -62,8 +59,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)
@ -73,8 +69,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Build for Python 3 only. Python 2 is not supported despite
# what the setup.py file claims...
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
@ -86,9 +84,9 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
scipy
pandas
python-patsy
scipy
EOF
# Package the tree

1
l/python-statsmodels/statsmodels-0.10.2.tar.gz.sha256

@ -0,0 +1 @@
9cd2194c6642a8754e85f9a6e6912cdf996bebf6ff715d3cc67f65dadfd37cc9 statsmodels-0.10.2.tar.gz

1
l/python-statsmodels/statsmodels-0.8.0.tar.gz.sha256

@ -1 +0,0 @@
26431ab706fbae896db7870a0892743bfbb9f5c83231644692166a31d2d86048 statsmodels-0.8.0.tar.gz
Loading…
Cancel
Save