From 8b431d17742a43aeca06d897dd5889a58df0d259 Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Wed, 18 Nov 2020 05:34:12 -0800 Subject: [PATCH] py-ipykernel: fix install (#19617) There is a post-install routine in `ipykernel` that needs to be called for proper registration with jupyter. --- var/spack/repos/builtin/packages/py-ipykernel/package.py | 6 ++++++ 1 file changed, 6 insertions(+) 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'])