diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2021-12-14 13:36:55 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2021-12-14 15:58:23 +0100 |
commit | 983589995012215b627aa48f0025a1d8a86dad9a (patch) | |
tree | d56dcbb7da1e05e030a2fc4f743ff9e289880ad2 /dev-python/ipykernel | |
parent | app-text/zathura-pdf-mupdf: updated EGIT_REPO_URI (diff) | |
download | gentoo-983589995012215b627aa48f0025a1d8a86dad9a.tar.gz gentoo-983589995012215b627aa48f0025a1d8a86dad9a.tar.bz2 gentoo-983589995012215b627aa48f0025a1d8a86dad9a.zip |
dev-python/ipykernel: fix bug #784764
Closes: https://bugs.gentoo.org/784764
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-python/ipykernel')
-rw-r--r-- | dev-python/ipykernel/ipykernel-6.4.2-r1.ebuild (renamed from dev-python/ipykernel/ipykernel-6.4.2.ebuild) | 7 | ||||
-rw-r--r-- | dev-python/ipykernel/ipykernel-6.5.0-r1.ebuild (renamed from dev-python/ipykernel/ipykernel-6.5.0.ebuild) | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/dev-python/ipykernel/ipykernel-6.4.2.ebuild b/dev-python/ipykernel/ipykernel-6.4.2-r1.ebuild index 5f91fc4ba8ff..2e632c2d5273 100644 --- a/dev-python/ipykernel/ipykernel-6.4.2.ebuild +++ b/dev-python/ipykernel/ipykernel-6.4.2-r1.ebuild @@ -46,3 +46,10 @@ src_prepare() { sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die distutils-r1_src_prepare } + +src_install() { + distutils-r1_src_install + # Use python3 in kernel.json configuration, bug #784764 + sed -i -e '/python3.[0-9]\+/s//python3/' \ + "${ED}"/usr/share/jupyter/kernels/python3/kernel.json || die +} diff --git a/dev-python/ipykernel/ipykernel-6.5.0.ebuild b/dev-python/ipykernel/ipykernel-6.5.0-r1.ebuild index a8227c00e8fe..524e5e76b01c 100644 --- a/dev-python/ipykernel/ipykernel-6.5.0.ebuild +++ b/dev-python/ipykernel/ipykernel-6.5.0-r1.ebuild @@ -53,3 +53,10 @@ src_prepare() { sed -i -e 's:^TIMEOUT = .*:TIMEOUT = 120:' ipykernel/tests/*.py || die distutils-r1_src_prepare } + +src_install() { + distutils-r1_src_install + # Use python3 in kernel.json configuration, bug #784764 + sed -i -e '/python3.[0-9]\+/s//python3/' \ + "${ED}"/usr/share/jupyter/kernels/python3/kernel.json || die +} |