I've recently had a problem with writing an easyconfig for hub (easybuilders/easybuild-easyconfigs#2249).
It boiled down to the fact that the program executables were in a bin subdirectory and the module file created by EasyBuild had prepended both the bin subdirectory and the parent directory to the PATH. Normally, this might not cause issues. However, with hub there was an executable in the parent directory, which is distributed to help installing hub to the relevant location. This file was called install.
As a result, on subsequent calls to eb for installing tools, it was hub's install file which was being picked up and not the expected system's. To make matters worse, hub's install made a call to install itself. Thus resulting in recursive calls to hub's install file.
It would be good to have a way to conditionally add the installdir to PATH
I've recently had a problem with writing an easyconfig for hub (easybuilders/easybuild-easyconfigs#2249).
It boiled down to the fact that the program executables were in a
binsubdirectory and the module file created by EasyBuild had prepended both thebinsubdirectory and the parent directory to thePATH. Normally, this might not cause issues. However, withhubthere was an executable in the parent directory, which is distributed to help installinghubto the relevant location. This file was calledinstall.As a result, on subsequent calls to
ebfor installing tools, it washub'sinstallfile which was being picked up and not the expected system's. To make matters worse,hub'sinstallmade a call toinstallitself. Thus resulting in recursive calls tohub'sinstallfile.It would be good to have a way to conditionally add the
installdirtoPATH