Skip to content

complete implementation of (very) initial support for easyconfig format 2.0#810

Merged
boegel merged 25 commits intoeasybuilders:developfrom
boegel:format2_ctd
Jan 21, 2014
Merged

complete implementation of (very) initial support for easyconfig format 2.0#810
boegel merged 25 commits intoeasybuilders:developfrom
boegel:format2_ctd

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Jan 14, 2014

Building gzip with the included gzip.eb works, version and toolchain can be specified, default values are picked according to the [DEFAULT] section.

Examples of usage:

$ eb ~/work/easybuild-framework/test/framework/easyconfigs/v2.0/gzip.eb -ld
...
== 2014-01-14 10:10:19,469 main.module_generator DEBUG Obtained module name gzip/1.4
...
== COMPLETED: Installation ended successfully
$ module av gzip/1.4
----- /Users/kehoste/.local/easybuild/modules/all -----
gzip/1.4
$ eb ~/work/easybuild-framework/test/framework/easyconfigs/v2.0/gzip.eb -ld --software-version=1.5 --toolchain=goolf,1.4.10
...
== 2014-01-14 14:12:44,554 main.module_generator DEBUG Obtained module name gzip/1.5-goolf-1.4.10
...
== COMPLETED: Installation ended successfully
$ module av gzip/1.5-goolf-1.4.10
----- /Users/kehoste/.local/easybuild/modules/all -----
gzip/1.5-goolf-1.4.10

Comment thread test/framework/easyconfigs/v2.0/gzip.eb Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is the avoidance of templates on the 2 lines above intentional?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@boegel can you use at least one template constant here; it should still work.

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.

OK, used constants for both of these.

Comment thread easybuild/framework/easyblock.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so, most of the PR is about adding yet another argument (specs) and just pass it along. all options that are passed through from main to easyconfig should be packed in eg a dict or another object. (for now it looks like check_osdeps and specs are the ones)

all current arguments can be left if they belong to the API, but should marked deprecated.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

at the very least update the docstring when adding new arguments

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.

reworked to only have build_options and build_specs class parameters, both dictionaries

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jan 20, 2014

@stdweird: I took care of all remarks, but I still need to make the build_options and build_specs class parameters trickly up to main.py and do some cleanup in those function signatures...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be the default instead of None? you can make the condition to log a simple ```if 'valid_module_classes' in build_option.

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.

ok, done

@stdweird
Copy link
Copy Markdown
Contributor

@boegel 2nd pass done, i made some remarks that i deleted again because the coffee hasn't kicked in yet....

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jan 21, 2014

@stdweird: second round of remarks covered, so good to go, and continue in future PRs?

@stdweird
Copy link
Copy Markdown
Contributor

@boegel 2 tiny remarks, ready to merge

@boegel
Copy link
Copy Markdown
Member Author

boegel commented Jan 21, 2014

Last tiny remarks resolved, merging in this beast.
Thanks for the reviews @stdweird!

boegel added a commit that referenced this pull request Jan 21, 2014
complete implementation of (very) initial support for easyconfig format 2.0
@boegel boegel merged commit e963d91 into easybuilders:develop Jan 21, 2014
@boegel boegel deleted the format2_ctd branch January 21, 2014 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants