Fix for running --sanity-check-only for a JuliaBundle#4122
Conversation
|
I'm not sure this is the right place: PythonPackage does this because it uses the module-dependent stuff directly afterwards. https://github.com/Crivella/easybuild-easyblocks/blob/0c62eb9f874ae91a4b9dce397c3b225838569f52/easybuild/easyblocks/generic/pythonpackage.py#L1218 This isn't the case here. Can you post the full traceback? |
|
It is the same as in #4065 (comment) The problem arise from where is called before the |
|
I see, but this reasoning is not correct:
The problem we have here: In order to create the module we need to load the module. The fix here works because for I have that fixed locally so I think I have an open PR for that. Looking for that or creating it. |
|
I guess if we want to be more specific we should load the only Julia module that should be available regardless beforehand |
|
What do you mean by that exactly? I think we shouldn't do anything special. The current approach will work fine, if the sanity-check-only doesn't create a fake module. |
|
I'd be careful of touching the ExtensionEasyblock. Indeed we can take the version of Julia from the deps, the weird thing happening after is that in
is not set, while This results in EDIT: i guess it comes down to the fact that we are skipping the |
|
While is not required in general. As @Flamefire |
|
Closing in favor of #4146 which includes these changes |
Currently trying to run
--sanity-check-onlyon aJuliaBundle-based EC fails due to the dependencies not being loaded when the main package is testedThis in particular happens due to
get_software_version('Julia')being called before the module is loadedThis PR adds same section as for
PythonPackagetoJuliaPackageto load module early