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:
parent
72d28eef3e
commit
c89183d53f
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue