easybuild-framework
                                
                                
                                
                                    easybuild-framework copied to clipboard
                            
                            
                            
                        Incomplete module for extensions
I just noticed that the SciPy-bundle module generated by --module-only is missing some paths.
Those are supposed to be added by the numpy extension. However the current mechanism is flawed:
- The result of 
ext.run()is collected in a variable: https://github.com/easybuilders/easybuild-framework/blob/bf0af10626644574cdf528998962b6f3c770fdc1/easybuild/framework/easyblock.py#L1950-L1952 - This is then added to the module https://github.com/easybuilders/easybuild-framework/blob/bf0af10626644574cdf528998962b6f3c770fdc1/easybuild/framework/easyblock.py#L1466
 
The problems with this are:
- For 
--module-onlythis is not run - For 
--skipit might not be run - For 
--parallel-extensionit is not used either: https://github.com/easybuilders/easybuild-framework/blob/bf0af10626644574cdf528998962b6f3c770fdc1/easybuild/framework/easyblock.py#L2014 
From our "official" easyblocks only numpy uses that mechanism.
So we need a new method for extensions that returns the module-extra when used as an extension. The current make_module_extra cannot be used for that.
I'd propose make_module_extra_extension but we already have make_module_extra_extensions which would be confusing.