Skip to content

Binary unconditionaly prepends installdir to PATH #801

Description

@nathanhaigh

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions