-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for preinstallopts and install in subdirectory to Tarball generic easyblock #1989
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
tarball
deletes and re-createsinstalldir
on each installation, removing any installation from previous components. This PR adds an extra variablefinal_dir
that is similar tostart_dir
and can be used to target sub-directories ofinstalldir
, preserving installations from previous components. The default behavior oftarball
will be unaffected.preinstallopts
withtarball
. Any commands given throughpreinstallopts
will be executed before the copy of files to install directory.