add support for --include-* (REVIEW)#1301
Conversation
|
Refer to this link for build results (access rights to CI server needed): See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1785/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
Currently only the If also enhanced the output of |
There was a problem hiding this comment.
I need a temporary directory to symlink the included easyblocks into the correct namespace.
When --include-easyblocks is combined with --list-easyblocks, this point is never reached (--list-easyblocks is handled via tools/options.py, and so we don't return back to main.py after parsing options).
I now set the temporary directory as a part of postprocessing the parsed options, so earlier than I was here. Should be fine (can't hurt to do it earlier).
|
When combined with easybuilders/easybuild-easyblocks#617, this also reflects easyblocks being overridden: |
There was a problem hiding this comment.
any double space to trim above, all is intentional?
There was a problem hiding this comment.
we separate constants from functions (and top-level functions between each other) with a double newline
|
first visual review ok. very interesting PR, I am sure it will get quickly popular. I hope the lack of |
|
@fgeorgatos: the idea is to get some early feedback, finishing the other two options shouldn't be that hard, with what's in place already (it pretty analogous) |
|
implementation finished, first stab at dedicated unit tests for should also add tests for |
|
Refer to this link for build results (access rights to CI server needed): See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1788/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
There was a problem hiding this comment.
this is fine,
but it's sometimes easier to have
with open(newfile, 'w') as handle:
There was a problem hiding this comment.
yeah, I keep forgetting we're no longer stuck to Python 2.4 ;)
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
@JensTimmerman: please rereview |
|
ok |
|
Refer to this link for build results (access rights to CI server needed): See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1838/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
Refer to this link for build results (access rights to CI server needed): See https://jenkins1.ugent.be/job/easybuild-framework-pr-builder/1842/console for more details. Please fix the reported issues by pushing additional commits to the branch corresponding with this pull request; contact @boegel if you're not sure what to do. |
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
Refer to this link for build results (access rights to CI server needed): This pull request is now ready for review/testing. Please try and find someone who can tackle this; contact @boegel if you're not sure what to do. |
|
OK, I'm calling this, merging to be included in EB v2.2.0. All TODO's are ticked off, extensive unit tests are in place, and a documentation update is ready to go as well (see easybuilders/easybuild#129). Thanks for the feedback on this @fgeorgatos, @JensTimmerman, @wpoely86 and @rjeschmi! |
add support for --include-* (REVIEW)
Add support to easily include additional custom easyblocks, module naming schemes and toolchains/toolchain components, without having to fiddle with
$PYTHONPATHor Python packaging magic (__init__.py), etc.TODO list:
--include-easyblocks--include-module-naming-schemes--include-toolchainsinclude_*functions--include-*options combined with--list-toolchains,--list-easyblocks,--avail-module-naming-schemesnote: requires easybuilders/easybuild-easyblocks#617 in order to work correctly