Skip to content

Commit

Permalink
Merge pull request #1 from boegel/parmetis
Browse files Browse the repository at this point in the history
initialize self.config_shared and self.config_static in constructor of ParMETIS easyblock
  • Loading branch information
lexming authored Mar 17, 2020
2 parents b2ee373 + f623236 commit 5f6ead6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions easybuild/easyblocks/p/parmetis.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@
class EB_ParMETIS(EasyBlock):
"""Support for building and installing ParMETIS."""

def __init__(self, *args, **kwargs):
"""Easyblock constructor."""

super(EB_ParMETIS, self).__init__(*args, **kwargs)

self.config_shared = False
self.config_static = False

def configure_step(self):
"""Configure ParMETIS build.
For versions of ParMETIS < 4 , METIS is a seperate build
Expand Down Expand Up @@ -196,10 +204,10 @@ def sanity_check_step(self):

parmetis_libs = [os.path.join('lib', 'libmetis.a')]
# Add static and shared libs depending on configopts
if hasattr(self, "config_shared") and self.config_shared is True:
if self.config_shared:
shlib_ext = get_shared_lib_ext()
parmetis_libs.append(os.path.join('lib', 'libparmetis.%s' % shlib_ext))
if hasattr(self, "config_static") and self.config_static is True:
if self.config_static:
parmetis_libs.append(os.path.join('lib', 'libparmetis.a'))

custom_paths = {
Expand Down

0 comments on commit 5f6ead6

Please sign in to comment.