diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2020-11-18 05:34:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-18 07:34:12 -0600 |
commit | 8b431d17742a43aeca06d897dd5889a58df0d259 (patch) | |
tree | 2a3ee557d9e6f585d0e6283da162cd56a9b05363 /var | |
parent | a0a15b5cd0eaa4ee5d7a66c3535dd1b9e2c74176 (diff) | |
download | spack-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.py | 6 |
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']) |