summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2020-11-18 05:34:12 -0800
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:14 -0800
commitd6bd95db2ebe932e4db7f36eab26a187a34c415a (patch)
tree75d0f1a0979e12aa0ff7b314e87af4d689fe70b4 /var
parent77d9acb0710238ca661fd7c450ce0bee1e471483 (diff)
downloadspack-d6bd95db2ebe932e4db7f36eab26a187a34c415a.tar.gz
spack-d6bd95db2ebe932e4db7f36eab26a187a34c415a.tar.bz2
spack-d6bd95db2ebe932e4db7f36eab26a187a34c415a.tar.xz
spack-d6bd95db2ebe932e4db7f36eab26a187a34c415a.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'])