-
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
introduce EasyBlock.post_init method to correctly define builddir variable when build-in-installdir mode is enabled in easyconfig or easyblock #3900
Conversation
This looks correct, but is not solving the issue I am seeing with OpenFOAM.
with this PR is not hitting the right section of code. |
So, setting |
a possible solution would then be to replace build_in_installdir(self):
if self.builddir != self.installdir:
self.log.info("Changing build dir to %s", self.installdir)
self.builddir = self.installdir |
…ir that is set by easyblock is correctly taken into account
… is correctly set based on build_in_installdir (which may be defined dynamically by easyblock in constructor)
c053fb0
to
9623629
Compare
@smoors That's possible, but the downside of this approach is that easyblocks need to follow suite in order to pick up this bugfix... I think a better option is to introduce a That way, existing easyblocks that set |
…ramework into fix_builddir_sanity_check_only
…ter creating EasyBlock instance
ff1c8db
to
7066e03
Compare
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.
lgtm
Going in, thanks @boegel! |
fixes #3895