build systems: simpler, clearer decorators: run_after, run_before (#2860)
* PackageMeta: `run_before` is an alias of `precondition`, `run_after` an alias of `sanity_check` * PackageMeta: removed `precondition` and `sanity_check` * PackageMeta: decorators are now free-standing * package: modified/added docstrings. Fixed the semantics of `on_package_attributes`. * package: added unit test assertion as side effects of install * build_systems: factored build-time test running into base class * r: updated decorators in package.py * docs: updated decorator names
This commit is contained in:

committed by
Todd Gamblin

parent
90d47a3ead
commit
fc866ae0fe
@@ -113,7 +113,7 @@ def configure_args(self):
|
||||
|
||||
return config_args
|
||||
|
||||
@AutotoolsPackage.sanity_check('install')
|
||||
@run_after('install')
|
||||
def copy_makeconf(self):
|
||||
# Make a copy of Makeconf because it will be needed to properly build R
|
||||
# dependencies in Spack.
|
||||
@@ -121,7 +121,7 @@ def copy_makeconf(self):
|
||||
dst_makeconf = join_path(self.etcdir, 'Makeconf.spack')
|
||||
shutil.copy(src_makeconf, dst_makeconf)
|
||||
|
||||
@AutotoolsPackage.sanity_check('install')
|
||||
@run_after('install')
|
||||
def filter_compilers(self):
|
||||
"""Run after install to tell the configuration files and Makefiles
|
||||
to use the compilers that Spack built the package with.
|
||||
|
Reference in New Issue
Block a user