Ensure that tests are optional (#3922)
This commit is contained in:
@@ -108,7 +108,7 @@ def install(self, spec, prefix):
|
||||
else:
|
||||
wantmpi = 'BUILD=NOMPI'
|
||||
mpif90 = 'MPIF90C='
|
||||
|
||||
|
||||
# Choose BLAS and LAPACK
|
||||
lapack = ("LAPACKL=%s" %
|
||||
(spec['lapack'].libs + spec['blas'].libs).ld_flags)
|
||||
@@ -158,8 +158,8 @@ def install(self, spec, prefix):
|
||||
for filename in fnmatch.filter(filenames, '*~'):
|
||||
os.remove(os.path.join(dirpath, filename))
|
||||
|
||||
@on_package_attributes(run_tests=True)
|
||||
@run_after('install')
|
||||
@on_package_attributes(run_tests=True)
|
||||
def check_install(self):
|
||||
prefix = self.prefix
|
||||
spec = self.spec
|
||||
|
Reference in New Issue
Block a user