Get Rid of nobuild, nolink, and alldeps (#2765)
* Removing the nobuild, nolink, and alldeps dependency types in favor of being explicit. * This will help with maintenance going forward, as adding more dependency types won't affect existing declared dependencies in weird ways. * default deptype is still `('build', 'link')`
This commit is contained in:

committed by
Todd Gamblin

parent
68baac0549
commit
402dfe30f9
@@ -37,15 +37,15 @@ class PySncosmo(Package):
|
||||
# Required dependencies
|
||||
# py-sncosmo binaries are duplicates of those from py-astropy
|
||||
extends('python', ignore=r'bin/.*')
|
||||
depends_on('py-numpy', type=nolink)
|
||||
depends_on('py-scipy', type=nolink)
|
||||
depends_on('py-astropy', type=nolink)
|
||||
depends_on('py-numpy', type=('build', 'run'))
|
||||
depends_on('py-scipy', type=('build', 'run'))
|
||||
depends_on('py-astropy', type=('build', 'run'))
|
||||
|
||||
# Recommended dependencies
|
||||
depends_on('py-matplotlib', type=nolink)
|
||||
depends_on('py-iminuit', type=nolink)
|
||||
depends_on('py-emcee', type=nolink)
|
||||
depends_on('py-nestle', type=nolink)
|
||||
depends_on('py-matplotlib', type=('build', 'run'))
|
||||
depends_on('py-iminuit', type=('build', 'run'))
|
||||
depends_on('py-emcee', type=('build', 'run'))
|
||||
depends_on('py-nestle', type=('build', 'run'))
|
||||
|
||||
def install(self, spec, prefix):
|
||||
setup_py('install', '--prefix={0}'.format(prefix))
|
||||
|
Reference in New Issue
Block a user