Spack packages now PEP8 compliant.
This commit is contained in:
@@ -36,15 +36,24 @@ class Mumps(Package):
|
||||
|
||||
version('5.0.1', 'b477573fdcc87babe861f62316833db0')
|
||||
|
||||
variant('mpi', default=True, description='Activate the compilation of MUMPS with the MPI support')
|
||||
variant('scotch', default=False, description='Activate Scotch as a possible ordering library')
|
||||
variant('ptscotch', default=False, description='Activate PT-Scotch as a possible ordering library')
|
||||
variant('metis', default=False, description='Activate Metis as a possible ordering library')
|
||||
variant('parmetis', default=False, description='Activate Parmetis as a possible ordering library')
|
||||
variant('double', default=True, description='Activate the compilation of dmumps')
|
||||
variant('float', default=True, description='Activate the compilation of smumps')
|
||||
variant('complex', default=True, description='Activate the compilation of cmumps and/or zmumps')
|
||||
variant('idx64', default=False, description='Use int64_t/integer*8 as default index type')
|
||||
variant('mpi', default=True,
|
||||
description='Compile MUMPS with MPI support')
|
||||
variant('scotch', default=False,
|
||||
description='Activate Scotch as a possible ordering library')
|
||||
variant('ptscotch', default=False,
|
||||
description='Activate PT-Scotch as a possible ordering library')
|
||||
variant('metis', default=False,
|
||||
description='Activate Metis as a possible ordering library')
|
||||
variant('parmetis', default=False,
|
||||
description='Activate Parmetis as a possible ordering library')
|
||||
variant('double', default=True,
|
||||
description='Activate the compilation of dmumps')
|
||||
variant('float', default=True,
|
||||
description='Activate the compilation of smumps')
|
||||
variant('complex', default=True,
|
||||
description='Activate the compilation of cmumps and/or zmumps')
|
||||
variant('idx64', default=False,
|
||||
description='Use int64_t/integer*8 as default index type')
|
||||
variant('shared', default=True, description='Build shared libraries')
|
||||
|
||||
depends_on('scotch + esmumps', when='~ptscotch+scotch')
|
||||
@@ -61,8 +70,10 @@ class Mumps(Package):
|
||||
# end before install
|
||||
# def patch(self):
|
||||
def write_makefile_inc(self):
|
||||
if ('+parmetis' in self.spec or '+ptscotch' in self.spec) and '+mpi' not in self.spec: # NOQA: ignore=E501
|
||||
raise RuntimeError('You cannot use the variants parmetis or ptscotch without mpi') # NOQA: ignore=E501
|
||||
if ('+parmetis' in self.spec or '+ptscotch' in self.spec) and (
|
||||
'+mpi' not in self.spec):
|
||||
raise RuntimeError(
|
||||
'You cannot use the variants parmetis or ptscotch without mpi')
|
||||
|
||||
makefile_conf = ["LIBBLAS = %s" % to_link_flags(
|
||||
self.spec['blas'].blas_shared_lib)
|
||||
@@ -115,7 +126,7 @@ def write_makefile_inc(self):
|
||||
# the fortran compilation flags most probably are
|
||||
# working only for intel and gnu compilers this is
|
||||
# perhaps something the compiler should provide
|
||||
['OPTF = %s -O -DALLOW_NON_INIT %s' % (fpic, '-fdefault-integer-8' if self.compiler.name == "gcc" else '-i8'), # NOQA: ignore=E501
|
||||
['OPTF = %s -O -DALLOW_NON_INIT %s' % (fpic, '-fdefault-integer-8' if self.compiler.name == "gcc" else '-i8'), # noqa
|
||||
'OPTL = %s -O ' % fpic,
|
||||
'OPTC = %s -O -DINTSIZE64' % fpic])
|
||||
else:
|
||||
@@ -148,13 +159,13 @@ def write_makefile_inc(self):
|
||||
# 10.10. Use gfortran. (Homebrew)
|
||||
makefile_conf.extend([
|
||||
'LIBEXT=.dylib',
|
||||
'AR=%s -dynamiclib -Wl,-install_name -Wl,%s/$(notdir $@) -undefined dynamic_lookup -o ' % (os.environ['FC'], prefix.lib), # NOQA: ignore=E501
|
||||
'AR=%s -dynamiclib -Wl,-install_name -Wl,%s/$(notdir $@) -undefined dynamic_lookup -o ' % (os.environ['FC'], prefix.lib), # noqa
|
||||
'RANLIB=echo'
|
||||
])
|
||||
else:
|
||||
makefile_conf.extend([
|
||||
'LIBEXT=.so',
|
||||
'AR=$(FL) -shared -Wl,-soname -Wl,%s/$(notdir $@) -o' % prefix.lib, # NOQA: ignore=E501
|
||||
'AR=$(FL) -shared -Wl,-soname -Wl,%s/$(notdir $@) -o' % prefix.lib, # noqa
|
||||
'RANLIB=echo'
|
||||
])
|
||||
else:
|
||||
|
Reference in New Issue
Block a user