diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-06-16 16:20:34 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-18 09:10:07 +0700 |
commit | c89183d53f05815e6e29d112d77b16fe02feccdf (patch) | |
tree | 5e27295ff9bc72b6d9da29c03c4ecd367489a33b /development/jupyter-ipykernel | |
parent | 72d28eef3ea563d14c4e9aff3a0a41b76fd7beb8 (diff) | |
download | slackbuilds-c89183d53f05815e6e29d112d77b16fe02feccdf.tar.gz |
development/jupyter-ipykernel: Updated for version 6.15.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/jupyter-ipykernel')
-rw-r--r-- | development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild | 31 | ||||
-rw-r--r-- | development/jupyter-ipykernel/jupyter-ipykernel.info | 6 |
2 files changed, 32 insertions, 5 deletions
diff --git a/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild b/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild index 90a5d8a2df..bfabeeb395 100644 --- a/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild +++ b/development/jupyter-ipykernel/jupyter-ipykernel.SlackBuild @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=jupyter-ipykernel -VERSION=${VERSION:-6.13.0} +VERSION=${VERSION:-6.15.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -82,7 +82,34 @@ 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 +from glob import glob +from ipykernel.kernelspec import KERNEL_NAME, make_ipkernel_cmd, write_kernel_spec +import os +here = os.path.abspath(os.path.dirname(__file__)) +pjoin = os.path.join +packages = [] +for d, _, _ in os.walk(pjoin(here, 'ipykernel')): + if os.path.exists(pjoin(d, '__init__.py')): + packages.append(d[len(here)+1:].replace(os.path.sep, '.')) +dest = pjoin(here, "data_kernelspec") +if os.path.exists(dest): + shutil.rmtree(dest) +write_kernel_spec(dest, overrides={"argv": make_ipkernel_cmd()}) +setup(name='${PRGNAM}', + version='${VERSION}', + packages=packages, + py_modules=["ipykernel_launcher"], + data_files=[(pjoin("share", "jupyter", "kernels", KERNEL_NAME), glob(pjoin("data_kernelspec", "*")))], + package_data={"ipykernel": ["resources/*.*", "py.typed"]}, +) +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/jupyter-ipykernel/jupyter-ipykernel.info b/development/jupyter-ipykernel/jupyter-ipykernel.info index 3ade01b62f..5dfda952ed 100644 --- a/development/jupyter-ipykernel/jupyter-ipykernel.info +++ b/development/jupyter-ipykernel/jupyter-ipykernel.info @@ -1,8 +1,8 @@ PRGNAM="jupyter-ipykernel" -VERSION="6.13.0" +VERSION="6.15.0" HOMEPAGE="https://jupyter.org/" -DOWNLOAD="https://files.pythonhosted.org/packages/6d/c6/46b54eb61be37d98d130935b91a0a6e4ce8fca8a49bb15ba263f5e31718a/ipykernel-6.13.0.tar.gz" -MD5SUM="8d266671028d20c1331753f520107859" +DOWNLOAD="https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-6.15.0.tar.gz" +MD5SUM="24b09a109895398e923da425f977353f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="debugpy ipython jupyter_client psutil" |