diff options
Diffstat (limited to 'development/jupyter-notebook_shim')
-rw-r--r-- | development/jupyter-notebook_shim/jupyter-notebook_shim.SlackBuild | 33 | ||||
-rw-r--r-- | development/jupyter-notebook_shim/jupyter-notebook_shim.info | 8 |
2 files changed, 14 insertions, 27 deletions
diff --git a/development/jupyter-notebook_shim/jupyter-notebook_shim.SlackBuild b/development/jupyter-notebook_shim/jupyter-notebook_shim.SlackBuild index 40eb4ebca8..3ef1193296 100644 --- a/development/jupyter-notebook_shim/jupyter-notebook_shim.SlackBuild +++ b/development/jupyter-notebook_shim/jupyter-notebook_shim.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for jupyter-notebook_shim -# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2022-2024 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyter-notebook_shim -VERSION=${VERSION:-0.1.0} +VERSION=${VERSION:-0.2.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +40,6 @@ if [ -z "$ARCH" ]; then esac fi -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -52,20 +49,6 @@ 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 @@ -81,16 +64,20 @@ 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 {} \; -# Fix /etc/jupyter path -sed 's|etc|/etc|' -i setup.cfg +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -python3 setup.py install --root=$PKG +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl + +# Fix /etc/jupyter path +mv $PKG/{usr/,}etc 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 CHANGELOG.md README.md RELEASE.md LICENSE PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGELOG.md README.md RELEASE.md PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/development/jupyter-notebook_shim/jupyter-notebook_shim.info b/development/jupyter-notebook_shim/jupyter-notebook_shim.info index 8094d5b529..cf1fd79a84 100644 --- a/development/jupyter-notebook_shim/jupyter-notebook_shim.info +++ b/development/jupyter-notebook_shim/jupyter-notebook_shim.info @@ -1,10 +1,10 @@ PRGNAM="jupyter-notebook_shim" -VERSION="0.1.0" +VERSION="0.2.4" HOMEPAGE="https://github.com/jupyterlab/notebook_shim" -DOWNLOAD="https://files.pythonhosted.org/packages/source/n/notebook_shim/notebook_shim-0.1.0.tar.gz" -MD5SUM="28c32e4e199c18ebcbfc57a0f1d5b60a" +DOWNLOAD="https://files.pythonhosted.org/packages/source/n/notebook_shim/notebook_shim-0.2.4.tar.gz" +MD5SUM="8d3e7f204f53be8fbfe06df534c55613" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jupyter_server" MAINTAINER="Isaac Yu" -EMAIL="isaacyu1@isaacyu1.com" +EMAIL="isaacyu@protonmail.com" |