-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
@@ -163,9 +163,6 @@ def main(testing_data=(None, None, None)): | |||
new_umask = int(options.umask, 8) | |||
old_umask = os.umask(new_umask) | |||
|
|||
# set temporary directory to use | |||
eb_tmpdir = set_tmpdir(options.tmpdir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
|
__path__ = extend_path(__path__, __name__) | ||
""" | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any double space to trim above, all is intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
handle = open(init_path, 'w') | ||
handle.write(PKG_INIT_BODY) | ||
handle.close() | ||
except (IOError, OSError) as err: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is fine,
but it's sometimes easier to have
with open(newfile, 'w') as handle:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
$PYTHONPATH
or Python packaging magic (__init__.py
), etc.TODO list:
--include-easyblocks
--include-module-naming-schemes
--include-toolchains
include_*
functions--include-*
options combined with--list-toolchains
,--list-easyblocks
,--avail-module-naming-schemes
note: requires easybuilders/easybuild-easyblocks#617 in order to work correctly