Browse Source

l/python-patsy: Upgraded to python-patsy-0.5.1.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
5e6ddd3d64
  1. 1
      l/python-patsy/patsy-0.5.0.tar.gz.sha256
  2. 1
      l/python-patsy/patsy-0.5.1.tar.gz.sha256
  3. 17
      l/python-patsy/python-patsy.SlackBuild

1
l/python-patsy/patsy-0.5.0.tar.gz.sha256

@ -1 +0,0 @@
e05f38d5c38c8d216f0cc2b765b1069b433c92d628b954fb2fee68d13e42883b patsy-0.5.0.tar.gz

1
l/python-patsy/patsy-0.5.1.tar.gz.sha256

@ -0,0 +1 @@
f115cec4201e1465cd58b9866b0b0e7b941caafec129869057405bfe5b5e3991 patsy-0.5.1.tar.gz

17
l/python-patsy/python-patsy.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,13 +25,12 @@
# Latest patsy sourcecode is available at:
# <https://github.com/pydata/patsy>.
#
# Depends: l/numpy, l/python-six
# Depends: l/numpy
# Source package infos
NAMESRC=${NAMESRC:-patsy}
VERSION=${VERSION:-0.5.0}
VERSION=${VERSION:-0.5.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/8b/c7/c3f6ae21cd9bde9b434ffc5a451e2ba657a5a062d21ee41fe9990c739013/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-patsy}
@ -60,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)
@ -71,8 +69,10 @@ 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
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
@ -85,7 +85,6 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
numpy
python-six
EOF
# Package the tree

Loading…
Cancel
Save