aboutsummaryrefslogtreecommitdiff
path: root/development/jupyterlab_server
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu1@isaacyu1.com>2022-06-06 12:01:45 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-06-11 08:58:55 +0700
commit075f6b65fe5b41a286a2b1ad1a545e2886f67073 (patch)
tree29ad504b2176ca30271d24f3c065a902e74cf7b8 /development/jupyterlab_server
parentb96717a1acba27d40a9c060b078786c367a1e506 (diff)
development/jupyterlab_server: Update for version 2.14.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/jupyterlab_server')
-rw-r--r--development/jupyterlab_server/jupyterlab_server.SlackBuild22
-rw-r--r--development/jupyterlab_server/jupyterlab_server.info6
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"