On 15/08/2019 16:26, Maik Schmidt wrote:
Hi Kenneth,
I just tried that, but the problem is that I get the subdirectory from
the tar in my installdir when using "buildininstalldir". Just using
PackedBinary without install_cmd on the other hand puts the contents of
the subdirectory in the tar into the installdir. Is this
working-as-intended? Can I influence that behaviour somehow?
If you also use this:
unpack_options = '--strip-components=1'
the top-level dir will be stripped out (assuming you're using a tarball
that gets unpacked with the 'tar' command).
regards,
Kenneth
Thanks,
Maik
Am 15.08.19 um 15:40 schrieb Kenneth Hoste:
On 15/08/2019 15:23, Maik Schmidt wrote:
Hi all,
short question: which easyblock is best used for the case:
- unpack to installdir first
- run a command afterwards
?
I have tried the following:
easyblock = "PackedBinary"
install_cmd = "..."
However, as soon as "install_cmd" is defined, the files are not
copied to the installdir automatically anymore.
Of course, I could add a "cp" to my install_cmd or use the CmdCp
easyblock, but that feels a little clumsy.
Maybe a paramter could be added to PackedBinary to simple execute a
command after the unpacking? That would be helpful in a few cases, I
believe.
How about setting "buildininstalldir = True" (together with using
PackedBinary and install_cmd)?
regards,
Kenneth