summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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
+}