summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-11-18 05:34:12 -0800
committerGitHub <noreply@github.com>2020-11-18 07:34:12 -0600
commit8b431d17742a43aeca06d897dd5889a58df0d259 (patch)
tree2a3ee557d9e6f585d0e6283da162cd56a9b05363 /var
parenta0a15b5cd0eaa4ee5d7a66c3535dd1b9e2c74176 (diff)
downloadspack-8b431d17742a43aeca06d897dd5889a58df0d259.tar.gz
spack-8b431d17742a43aeca06d897dd5889a58df0d259.tar.bz2
spack-8b431d17742a43aeca06d897dd5889a58df0d259.tar.xz
spack-8b431d17742a43aeca06d897dd5889a58df0d259.zip
py-ipykernel: fix install (#19617)
There is a post-install routine in `ipykernel` that needs to be called for proper registration with jupyter.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-ipykernel/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-ipykernel/package.py b/var/spack/repos/builtin/packages/py-ipykernel/package.py
index a9afa664d7..134c756490 100644
--- a/var/spack/repos/builtin/packages/py-ipykernel/package.py
+++ b/var/spack/repos/builtin/packages/py-ipykernel/package.py
@@ -40,3 +40,9 @@ class PyIpykernel(PythonPackage):
depends_on('py-pytest-cov', type='test')
# depends_on('py-flaky', type='test')
depends_on('py-nose', type='test')
+
+ phases = ['build', 'install', 'install_data']
+
+ def install_data(self):
+ """ install the Jupyter kernel spec """
+ self.spec['python'].command('-m ipykernel', ['install'])