py-ipykernel: fix bug in phase method (#19986)

* py-ipykernel: fix bug in phase method

* Fix bug in executable calling
This commit is contained in:
Adam J. Stewart 2020-11-18 20:45:29 -06:00 committed by GitHub
parent bc5c475909
commit 95f5419502
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,7 @@ class PyIpykernel(PythonPackage):
phases = ['build', 'install', 'install_data']
def install_data(self):
def install_data(self, spec, prefix):
""" install the Jupyter kernel spec """
self.spec['python'].command('-m ipykernel', ['install'])
self.spec['python'].command(
'-m', 'ipykernel', 'install', '--prefix=' + prefix)