diff options
Diffstat (limited to 'development/jupyterlab/jupyterlab.SlackBuild')
-rw-r--r-- | development/jupyterlab/jupyterlab.SlackBuild | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/development/jupyterlab/jupyterlab.SlackBuild b/development/jupyterlab/jupyterlab.SlackBuild index ff9922993163..1d6419b0af0a 100644 --- a/development/jupyterlab/jupyterlab.SlackBuild +++ b/development/jupyterlab/jupyterlab.SlackBuild @@ -25,8 +25,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyterlab -VERSION=${VERSION:-3.5.3} -BUILD=${BUILD:-2} +VERSION=${VERSION:-4.0.13} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -62,20 +62,14 @@ 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 {} \; -# Remove nbclassic dependency -sed -e '/nbclassic/d' -i setup.cfg -patch -p1 < $CWD/no-nbclassic.patch +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages -# Remove jupyter-notebook requirement from setup.cfg -sed -e '/notebook/d' -i setup.cfg +python3 -m build --no-isolation +python3 -m installer -d "$PKG" dist/*.whl -# Fix /etc/jupyter path -sed 's|etc|/etc|' -i setup.py - -python3 setup.py install --root=$PKG - -# Install desktop file -install -Dm644 $CWD/jupyterlab.desktop $PKG/usr/share/applications/jupyterlab.desktop +# 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 |