Browse Source

l/jupyter-notebook: Upgraded to jupyter-notebook-6.0.2.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
b0dd512471
  1. 28
      n/jupyter-notebook/jupyter-notebook.SlackBuild
  2. 1
      n/jupyter-notebook/notebook-5.4.0.tar.gz.sha256
  3. 1
      n/jupyter-notebook/notebook-6.0.2.tar.gz.sha256

28
n/jupyter-notebook/jupyter-notebook.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:
@ -23,13 +23,14 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest notebook sourcecode is available at: <http://jupyter.org/>.
# Depends: l/jupyter-nbconvert, l/ipykernel, l/python-send2trash
#
# Depends: l/ipykernel, l/jupyter-client, l/jupyter-nbconvert
# Depends: l/python-prometheus-client, l/python-send2trash
# Depends: l/python-terminado
# Source package infos
NAMESRC=${NAMESRC:-notebook}
VERSION=${VERSION:-5.4.0}
VERSION=${VERSION:-6.0.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/11/15/f8a387de97dbc7555fa41c907cb8c1f73ec5e7e7d577460b46e755b36a5e/$ARCHIVE}
@ -60,8 +61,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,20 +71,28 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Jupyter Notebook is Python 3 only.
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CONTRIBUTING.rst COPYING.md README.md $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CONTRIBUTING.rst LICENSE README.md $PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
if sphinx-build -b html docs/source $PKG/usr/doc/$NAMEPKG-$VERSION/html ; then
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
jupyter-nbconvert
ipykernel
jupyter-client
jupyter-nbconvert
python-prometheus-client
python-send2trash
python-terminado
EOF

1
n/jupyter-notebook/notebook-5.4.0.tar.gz.sha256

@ -1 +0,0 @@
dd431fad9bdd25aa9ff8265da096ef770475e21bf1d327982611a7de5cd904ca notebook-5.4.0.tar.gz

1
n/jupyter-notebook/notebook-6.0.2.tar.gz.sha256

@ -0,0 +1 @@
399a4411e171170173344761e7fd4491a3625659881f76ce47c50231ed714d9b notebook-6.0.2.tar.gz
Loading…
Cancel
Save