Skip to content

Conversation

@akesandgren
Copy link
Contributor

Fixes some lingering bugs for various versions, and updates lists of Util programs for versions 3.2 to 4.1-b3

# make sure Siesta was indeed built with support for running in parallel
custom_commands.append("echo 'SystemName test' | mpirun -np 2 siesta 2>/dev/null | grep PARALLEL")
# The "cd to builddir" is required to not contaminate the install dir with cruft from running siesta
custom_commands.append("cd %s && echo 'SystemName test' | mpirun -np 2 siesta 2>/dev/null | grep PARALLEL" % self.builddir)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (135 > 120 characters)

# remove clean at the end of default target
if self.version == '4.0.1' or self.version == '4.1-b3':
# And yes, they are re-introducing this bug.
if LooseVersion(self.version) >= LooseVersion('4.0') and LooseVersion(self.version) < LooseVersion('4.0.2') or LooseVersion(self.version) == LooseVersion('4.1-b3'):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (176 > 120 characters)

(r"^(FPPFLAGS\s*=.*)$", r"\1 -DCDF $(NETCDF_INCLUDE)"),
])
regex_newlines.append((r"^(COMP_LIBS\s*=.*)$", r"\1\nNETCDF_LIBS = -lnetcdff"))
regex_newlines.append((r"^(COMP_LIBS\s*=.*)$", r"\1\nNETCDF_LIBS = -lnetcdff\nNETCDF_INCLUDE = -I%s/include" % netcdff_loc))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line too long (140 > 120 characters)

@akesandgren akesandgren added this to the 3.7.0 milestone Sep 13, 2018
# And yes, they are re-introducing this bug.
if ((LooseVersion(self.version) >= LooseVersion('4.0')
and LooseVersion(self.version) < LooseVersion('4.0.2'))
or LooseVersion(self.version) == LooseVersion('4.1-b3')):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

visually indented line with same indent as next logical line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And what does it really want it to be ???

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be left one column, aligned with the ( on line 231?

This is messy though... How about:

loose_ver = LooseVersion(self.version)
is_ver40 = loose_ver >= LooseVersion('4.0') and loose_ver < LooseVersion('4.0.2')
if is_ver40 or loose_ver == LooseVersion('4.1-b3'):

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And obviously the loose_ver definition can be higher up, so you can use it throughout the whole method and avoid using LooseVersion(self.version) all over the place...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just what i was about to ask :-)

@boegel boegel modified the milestones: 3.7.0, next release Sep 18, 2018
@boegel boegel changed the title Update siesta utils for v3.2 to 4.0.2 update Siesta easyblock for v3.2 to 4.1-b3 Sep 20, 2018
Copy link
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@boegel
Copy link
Member

boegel commented Sep 20, 2018

Changes make sense, tested with all existing Siesta easyconfig, no problems encountered, so good to go.

Thanks @akesandgren!

@boegel boegel merged commit aa07fe5 into easybuilders:develop Sep 20, 2018
@akesandgren akesandgren deleted the update-siesta-utils-for-v3.2-to-4.0.2 branch September 20, 2018 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants