Add PythonPackage base class
- Add a PythonPackage class with build system support. - Support build phases in PythonPackage - Add a custom sanity check for PythonPackages - Get rid of nolink dependencies in python packages - Update spack create to use new PythonPackage class - Port most of Python packages to new PythonPackage class - Conducted a massive install and activate of Python packages. - Fixed bugs introduced by install and activate. - Update API docs on PythonPackage
This commit is contained in:

committed by
Todd Gamblin

parent
1f49493fee
commit
c0aaa8fcea
@@ -25,7 +25,7 @@
|
||||
from spack import *
|
||||
|
||||
|
||||
class PyIpykernel(Package):
|
||||
class PyIpykernel(PythonPackage):
|
||||
"""IPython Kernel for Jupyter"""
|
||||
|
||||
homepage = "https://pypi.python.org/pypi/ipykernel"
|
||||
@@ -42,15 +42,10 @@ class PyIpykernel(Package):
|
||||
version('4.1.1', '51376850c46fb006e1f8d1cd353507c5')
|
||||
version('4.1.0', '638a43e4f8a15872f749090c3f0827b6')
|
||||
|
||||
extends('python')
|
||||
|
||||
depends_on('python@2.7:2.7.999,3.3:')
|
||||
depends_on('py-setuptools', type='build')
|
||||
depends_on('py-traitlets@4.1.0:')
|
||||
depends_on('py-tornado@4.0:')
|
||||
depends_on('py-ipython@4.0:')
|
||||
depends_on('py-jupyter-client')
|
||||
depends_on('py-pexpect')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
setup_py('install', '--prefix={0}'.format(prefix))
|
||||
depends_on('py-traitlets@4.1.0:', type=('build', 'run'))
|
||||
depends_on('py-tornado@4.0:', type=('build', 'run'))
|
||||
depends_on('py-ipython@4.0:', type=('build', 'run'))
|
||||
depends_on('py-jupyter-client', type=('build', 'run'))
|
||||
depends_on('py-pexpect', type=('build', 'run'))
|
||||
|
Reference in New Issue
Block a user