Skip to content

update WIEN2k easyblock to support version 19.1 (REVIEW)#1758

Merged
ocaisa merged 4 commits intoeasybuilders:developfrom
migueldiascosta:wien2k_19
Jul 16, 2019
Merged

update WIEN2k easyblock to support version 19.1 (REVIEW)#1758
ocaisa merged 4 commits intoeasybuilders:developfrom
migueldiascosta:wien2k_19

Conversation

@migueldiascosta
Copy link
Copy Markdown
Member

easyconfigs PR coming soon

Comment thread easybuild/easyblocks/w/wien2k.py
Comment thread easybuild/easyblocks/w/wien2k.py Outdated
(elpa_dirs, _) = run_cmd(elpa_find_dirs_cmd, log_all=True, simple=False)
for num, line in enumerate(elpa_dirs.split('\n'), 1):
if line == elpa_dir:
elpa_line = str(num)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

here I reproduce how the siteconfig script looks for elpa versions and variants in order to select the requested line number, but maybe there is a way to look at the script output instead of reproducing it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@migueldiascosta Can you give an example of the output?

run_cmd_qa supports using a part of the question (e.g. a number specifying which option to use) as the answer, which is what we do need to do for WRF for example, that may come in useful here?
See https://github.com/easybuilders/easybuild-easyblocks/blob/master/easybuild/easyblocks/w/wrf.py#L199

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

the output (below) is not numbered...

so we need to look at the whole list in any case, but if we could do that on the actual output instead of reproducing it, it would be better

Checking for ELPA version ...
 More than one set of include files in your ELPA-ROOT directory. Pick one (enter line number) or enter 0 to manually specify a version!:
.../software/ELPA/2018.11.001-intel-2019a/share/doc/elpa
.../software/ELPA/2018.11.001-intel-2019a/include/elpa-2018.11.001
.../software/ELPA/2018.11.001-intel-2019a/include/elpa-2018.11.001/elpa
.../software/ELPA/2018.11.001-intel-2019a/include/elpa_openmp-2018.11.001
.../software/ELPA/2018.11.001-intel-2019a/include/elpa_openmp-2018.11.001/elpa

Of course, initially I tried replying 0 and providing the version manually, the problem is that it then asks "Is this correct? (Y,n):" before allowing to change and the answer to this question is already yes in the qanda list, and I wasn't able to differentiate this particular question (maybe std_qa can also help there, if it allows matching multiple lines?)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you can match with multiple lines using qa too.

The main difference with std_qa is that it supports using regular expression patterns for matching.

Why is it a problem if the Is this correct question is already answered with yes though?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

w.r.t. to matching multiple lines, then I must have been doing something wrong, will try again

w.r.t. to Is this correct, it asks before we choose, so we need to answer no in order to choose the correct one...

but I'll have a better look and come back to this

@boegel boegel added this to the 3.x milestone Jul 1, 2019
@migueldiascosta migueldiascosta changed the title update WIEN2k easyblock to support version 19.1 update WIEN2k easyblock to support version 19.1 (WIP) Jul 1, 2019
@migueldiascosta migueldiascosta changed the title update WIEN2k easyblock to support version 19.1 (WIP) update WIEN2k easyblock to support version 19.1 (REVIEW) Jul 5, 2019
@Micket
Copy link
Copy Markdown
Contributor

Micket commented Jul 15, 2019

A complete oversight from me, I forgot about the block itself when approving, easybuilders/easybuild-easyconfigs#8503

Sorry for this. But, it seems the discussion above has been resolved now, so this should be ready to merge as well, right?

@Micket Micket modified the milestones: 3.x, next release (3.9.4?) Jul 15, 2019
@ocaisa
Copy link
Copy Markdown
Member

ocaisa commented Jul 16, 2019

@Micket Merging this on the basis of the tests you did for the easyconfig

@ocaisa ocaisa merged commit 6f6ae35 into easybuilders:develop Jul 16, 2019
@migueldiascosta
Copy link
Copy Markdown
Member Author

@Micket github should really support PR dependencies (meanwhile, if you were using --merge-pr, this might have helped: easybuilders/easybuild-framework#2607)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants