diff options
Diffstat (limited to 'development/jupyterlab_server')
-rw-r--r-- | development/jupyterlab_server/jupyterlab_server.SlackBuild | 22 | ||||
-rw-r--r-- | development/jupyterlab_server/jupyterlab_server.info | 6 |
2 files changed, 23 insertions, 5 deletions
diff --git a/development/jupyterlab_server/jupyterlab_server.SlackBuild b/development/jupyterlab_server/jupyterlab_server.SlackBuild index bb72b4dd68f4e..168df6f10206c 100644 --- a/development/jupyterlab_server/jupyterlab_server.SlackBuild +++ b/development/jupyterlab_server/jupyterlab_server.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyterlab_server -VERSION=${VERSION:-2.13.0} +VERSION=${VERSION:-2.14.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -79,7 +79,25 @@ 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 +# Use this setup.py shim: +cat << EOF > setup.py +from distutils.core import setup +import os +here = os.path.abspath(os.path.dirname(__file__)) +pjoin = os.path.join +packages = [] +for d, _, _ in os.walk(pjoin(here, 'jupyterlab_server')): + packages.append(d[len(here)+1:].replace(os.path.sep, '.')) +setup(name='${PRGNAM}', + version='${VERSION}', + packages=packages, + package_data={'': ['*']}, +) +EOF + +# With the shim, it's a good idea to use "unshare -n" to prevent downloading +# anything extra: +unshare -n python3 setup.py install --root=$PKG || exit 1 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 diff --git a/development/jupyterlab_server/jupyterlab_server.info b/development/jupyterlab_server/jupyterlab_server.info index bd8ca0db1b663..4632ba3d1076b 100644 --- a/development/jupyterlab_server/jupyterlab_server.info +++ b/development/jupyterlab_server/jupyterlab_server.info @@ -1,8 +1,8 @@ PRGNAM="jupyterlab_server" -VERSION="2.13.0" +VERSION="2.14.0" HOMEPAGE="https://jupyter.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/source/j/jupyterlab_server/jupyterlab_server-2.13.0.tar.gz" -MD5SUM="8652cc0cb628ece1f4cb5fe7bf005900" +DOWNLOAD="https://files.pythonhosted.org/packages/source/j/jupyterlab_server/jupyterlab_server-2.14.0.tar.gz" +MD5SUM="7b2d9e01570415d48f8a636a26b170f0" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="jupyter_server python3-babel python3-json5" |