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
|
Going in, thanks @boegel! |
fixes #3895