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>
This commit is contained in:
Isaac Yu 2022-06-16 16:20:34 -07:00 committed by Willy Sudiarto Raharjo
parent 72d28eef3e
commit c89183d53f
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 32 additions and 5 deletions

View File

@ -26,7 +26,7 @@
cd $(dirname $0) ; CWD=$(pwd) cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=jupyter-ipykernel PRGNAM=jupyter-ipykernel
VERSION=${VERSION:-6.13.0} VERSION=${VERSION:-6.15.0}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
@ -82,7 +82,34 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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 \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View File

@ -1,8 +1,8 @@
PRGNAM="jupyter-ipykernel" PRGNAM="jupyter-ipykernel"
VERSION="6.13.0" VERSION="6.15.0"
HOMEPAGE="https://jupyter.org/" HOMEPAGE="https://jupyter.org/"
DOWNLOAD="https://files.pythonhosted.org/packages/6d/c6/46b54eb61be37d98d130935b91a0a6e4ce8fca8a49bb15ba263f5e31718a/ipykernel-6.13.0.tar.gz" DOWNLOAD="https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-6.15.0.tar.gz"
MD5SUM="8d266671028d20c1331753f520107859" MD5SUM="24b09a109895398e923da425f977353f"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="debugpy ipython jupyter_client psutil" REQUIRES="debugpy ipython jupyter_client psutil"