add support for preinstallopts and install in subdirectory to Tarball generic easyblock#1989
add support for preinstallopts and install in subdirectory to Tarball generic easyblock#1989ocaisa merged 6 commits intoeasybuilders:developfrom
Conversation
|
I tested the execution of the new
|
|
@lexming Coincidentally PR easybuilders/easybuild-framework#3270 was opened today in framework that intends to cover (some of) the same ground as this, can you check if that approach would suit your needs? |
|
@ocaisa that PR merges the folders instead of installing them in different subfolders. That will not work for bundles, at least not in a general sense, as the source code of different projects will probably have collisions. |
|
@ocaisa I think that both options can complement each other and could be added to |
|
I might be repeating, but let me summarize what is needed by this change:
Do you have any specific use-case other than using this in Bundle? I needed step 1 Because I had MakeCP and Tarball. MakeCP would create I didn't thought about having multiple Tarballs in bundle, which is valid point. I like the idea of having install_in_subdir. Does install_in_subdir has any other use besides Bundle? |
|
List of use cases and required actions needed for each of them:
Cases 1 and 2 are already supported. The default behaviour of |
…to override default install dir
|
@Darkless012 @ocaisa I have added the option I've tested it combining several |
|
@lexming PR looks good, can you share that test case (here or in a gist) just so I repeat the tests for myself? |
|
@ocaisa I put the dummy easyconfig to test this PR in https://gist.github.com/lexming/3477ca1390b1965affb6338efc5f1dd7 |
ocaisa
left a comment
There was a problem hiding this comment.
LGTM Tested with https://gist.github.com/lexming/3477ca1390b1965affb6338efc5f1dd7
Update for tarball easyblock to make it (1) more flexible and (2) usable as a component in a bundle:
tarballdeletes and re-createsinstalldiron each installation, removing any installation from previous components. This PR adds an extra variablefinal_dirthat is similar tostart_dirand can be used to target sub-directories ofinstalldir, preserving installations from previous components. The default behavior oftarballwill be unaffected.preinstalloptswithtarball. Any commands given throughpreinstalloptswill be executed before the copy of files to install directory.