diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-10-22 01:27:47 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-10-29 10:28:32 +0700 |
commit | d58322e2c29267c5e94c6684a4982edadb320a53 (patch) | |
tree | cdccf85f3bef230956a134c9a50be34bdcaf0c3b /development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild | |
parent | 561edcd84afea0fe68ec7e034bc3cea34caa8e33 (diff) |
development/jupyter-nbconvert: Updated for version 7.2.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild')
-rw-r--r-- | development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild b/development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild index c7b28fe1ec967..cb66c99ed5d62 100644 --- a/development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild +++ b/development/jupyter-nbconvert/jupyter-nbconvert.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyter-nbconvert -VERSION=${VERSION:-6.5.0} +VERSION=${VERSION:-7.2.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,7 +82,18 @@ 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 {} \; -python3 setup.py install --root=$PKG +# Build jupyter-nbconvert offline +# Code taken from Gentoo science project: +# https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/nbconvert/nbconvert-7.1.0.ebuild +sed -e 's:css = .*:raise PermissionError("You shall not fetch!"):' -i hatch_build.py + +# Import style.min.css into classic templates +mkdir -p $TMP/$SRCNAM-$VERSION/share/templates/classic/static +cp $CWD/style.min.css $TMP/$SRCNAM-$VERSION/share/templates/classic/static/style.css + +# wheel build requires offline style.css +python3 -m build --wheel --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 |