update Siesta easyblock for v3.2 to 4.1-b3#1510
update Siesta easyblock for v3.2 to 4.1-b3#1510boegel merged 11 commits intoeasybuilders:developfrom
Conversation
Some things where missing from 4.0.x versions. Also sorted the lists in alphabetical order, and added some missing shell-scripts.
| # 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) |
There was a problem hiding this comment.
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'): |
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
line too long (140 > 120 characters)
| # 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')): |
There was a problem hiding this comment.
visually indented line with same indent as next logical line
There was a problem hiding this comment.
And what does it really want it to be ???
There was a problem hiding this comment.
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'):There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Just what i was about to ask :-)
…ded. Also make complex if-stmt more readable.
|
Changes make sense, tested with all existing Thanks @akesandgren! |
Fixes some lingering bugs for various versions, and updates lists of Util programs for versions 3.2 to 4.1-b3