diff options
Diffstat (limited to 'development/jupyter-ipykernel')
-rw-r--r-- | development/jupyter-ipykernel/README | 2 | ||||
-rw-r--r-- | development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild | 40 | ||||
-rw-r--r-- | development/jupyter-ipykernel/jupyter-ipykernel.info | 12 | ||||
-rw-r--r-- | development/jupyter-ipykernel/slack-desc | 4 |
4 files changed, 26 insertions, 32 deletions
diff --git a/development/jupyter-ipykernel/README b/development/jupyter-ipykernel/README index f0974bc59f..696b0972d7 100644 --- a/development/jupyter-ipykernel/README +++ b/development/jupyter-ipykernel/README @@ -1 +1 @@ -IPython Kernel for Jupyter. +Python 3 kernel for Jupyter. diff --git a/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild b/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild index e806879f4c..9d26c85608 100644 --- a/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild +++ b/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for jupyter-ipykernel -# Copyright 2017-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2017-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2022-2024 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +23,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=jupyter-ipykernel -VERSION=${VERSION:-4.10.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-6.29.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=ipykernel @@ -37,25 +41,15 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -71,15 +65,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python2 setup.py install --root=$PKG -sed -i "s| \"python\",| \"/usr/bin/python2\",|" $PKG/usr/share/jupyter/kernels/python2/kernel.json +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - COPYING.md README.md \ + CHANGELOG.md CONTRIBUTING.md README.md RELEASE.md \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -87,4 +81,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/development/jupyter-ipykernel/jupyter-ipykernel.info b/development/jupyter-ipykernel/jupyter-ipykernel.info index 34e73eda40..42bee84233 100644 --- a/development/jupyter-ipykernel/jupyter-ipykernel.info +++ b/development/jupyter-ipykernel/jupyter-ipykernel.info @@ -1,10 +1,10 @@ PRGNAM="jupyter-ipykernel" -VERSION="4.10.0" +VERSION="6.29.4" HOMEPAGE="https://jupyter.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-4.10.0.tar.gz" -MD5SUM="e4ee1bf2d025a6016fdf03a8f748aa01" +DOWNLOAD="https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-6.29.4.tar.gz" +MD5SUM="0517e57a395d4e829906cf2a9898f4fb" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="ipython jupyter_client tornado" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" +REQUIRES="python3-debugpy ipython jupyter_client python3-psutil python3-comm" +MAINTAINER="Isaac Yu" +EMAIL="isaacyu@protonmail.com" diff --git a/development/jupyter-ipykernel/slack-desc b/development/jupyter-ipykernel/slack-desc index df185b168e..79655ba2fb 100644 --- a/development/jupyter-ipykernel/slack-desc +++ b/development/jupyter-ipykernel/slack-desc @@ -6,9 +6,9 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -jupyter-ipykernel: jupyter-ipykernel (IPython Kernel for Jupyter) +jupyter-ipykernel: jupyter-ipykernel (Python 3 kernel for Jupyter) jupyter-ipykernel: -jupyter-ipykernel: IPython Kernel for Jupyter. +jupyter-ipykernel: Python 3 kernel for Jupyter. jupyter-ipykernel: jupyter-ipykernel: jupyter-ipykernel: |