py-ipykernel: fix install (#19617)

There is a post-install routine in `ipykernel` that needs to be
called for proper registration with jupyter.
This commit is contained in:
Axel Huebl 2020-11-18 05:34:12 -08:00 committed by GitHub
parent a0a15b5cd0
commit 8b431d1774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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'])